Package pyforms :: Package gui :: Module BaseWidget :: Class BaseWidget
[hide private]
[frames] | no frames]

Class BaseWidget

source code


The class implements the most basic widget or window.

Instance Methods [hide private]
 
__init__(self, title='Untitled') source code
 
initForm(self)
Generate the module Form
source code
 
generateTabs(self, formsetDict)
Generate QTabWidget for the module form
source code
 
generatePanel(self, formset)
Generate a panel for the module form with all the controls formset format example: [('_video', '_arenas', '_run'), {"Player":['_threshold', "_player", "=", "_results", "_query"], "Background image":[(' ', '_selectBackground', '_paintBackground'), '_image']}, "_progress"] tuple: will display the controls in the same horizontal line list: will display the controls in the same vertical line dict: will display the controls in a tab widget '||': will plit the controls in a horizontal line '=': will plit the controls in a vertical line
source code
 
show(self)
It shows the
source code
 
formControls(self)
Return all the form controls from the the module
source code
 
start_progress(self, total=100) source code
 
update_progress(self, progress=1) source code
 
end_progress(self) source code
 
executeCommand(self, cmd, cwd=None) source code
 
form(self) source code
 
title(self, value) source code
 
mainmenu(self, value) source code
 
save(self, data) source code
 
saveWindow(self) source code
 
loadWindowData(self, filename) source code
 
load(self, data) source code
 
loadWindow(self) source code
Method Details [hide private]

generateTabs(self, formsetDict)

source code 

Generate QTabWidget for the module form

Parameters:
  • formset (dict) - Tab form configuration

generatePanel(self, formset)

source code 

Generate a panel for the module form with all the controls formset format example: [('_video', '_arenas', '_run'), {"Player":['_threshold', "_player", "=", "_results", "_query"], "Background image":[(' ', '_selectBackground', '_paintBackground'), '_image']}, "_progress"] tuple: will display the controls in the same horizontal line list: will display the controls in the same vertical line dict: will display the controls in a tab widget '||': will plit the controls in a horizontal line '=': will plit the controls in a vertical line

Parameters:
  • formset (list) - Form configuration

formControls(self)

source code 

Return all the form controls from the the module

Decorators:
  • @property

form(self)

source code 
Decorators:
  • @property

title(self, value)

source code 
Decorators:
  • @title.setter

mainmenu(self, value)

source code 
Decorators:
  • @mainmenu.setter