Package NetworkEditor :: Module widgets :: Class NEMultiCheckButtons
[hide private]
[frames] | no frames]

Class NEMultiCheckButtons

source code

               object --+        
                        |        
itemBase.NetworkItemsBase --+    
                            |    
                   PortWidget --+
                                |
                               NEMultiCheckButtons

This class builds multi-checkbutton panel. Checkbuttons are packed in a grid, the name of the button is used as label. valueList is used to add the checkbuttons: data is stored in tuples. First entry is a string of the button name. Optional second entry is a dictionary with Tkinter checkbutton options. Optional third entry is a dictionary with grid options. Name: default: valueList [] callback None sfcfg {} immediate 1

Instance Methods [hide private]
  __init__(self, port, **kw)
  set(self, data, run=0)
  get(self, event=None)
  getDataForSaving(self, event=None)
  configure(self, rebuild=True, **kw)
  getDescr(self)
  addMyMenu(self)
Add menu entry to param.Panel menu
  toggleRegexpGUI(self, event=None)

Inherited from PortWidget: compareToOrigWidgetDescr, destroy, edit, getWidgetGridCfg, gridLabelAndWidget, label_cb, moveWidgetToPanel, newValueCallback, postWidgetMenu, rebuild, scheduleNode

Inherited from itemBase.NetworkItemsBase: delEditor, getEditor, setEditor

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]
  configOpts = {'initialValue': {'defaultValue': None, 'type': 'Non...
  ownConfigOpts = {'callback': {'defaultValue': None, 'type': 'None', ...

Properties [hide private]

Inherited from itemBase.NetworkItemsBase: editor

Inherited from object: __class__


Method Details [hide private]

__init__(self, port, **kw)
(Constructor)

source code 
None
Overrides: PortWidget.__init__

set(self, data, run=0)

source code 
None
Overrides: PortWidget.set

get(self, event=None)

source code 
None
Overrides: PortWidget.get

getDataForSaving(self, event=None)

source code 
None
Overrides: PortWidget.getDataForSaving

configure(self, rebuild=True, **kw)

source code 
None
Overrides: PortWidget.configure

getDescr(self)

source code 
None
Overrides: PortWidget.getDescr

addMyMenu(self)

source code 
Add menu entry to param.Panel menu

toggleRegexpGUI(self, event=None)

source code 
None

Class Variable Details [hide private]

configOpts

None
Value:
{'NEwidgetPosition': {'defaultValue': {},
                      'description': "dict of type { 'posx':i, 'posy':
j} use to place this NEwidget (label+widget) relative to other NEwidge
ts (2x2 sub-grid) also accepts {'row':i, 'column':j} to specify the re
al row and column",
                      'type': 'dict'},
 'callback': {'defaultValue': None, 'type': 'None', 'description': '??
?'},
...                                                                    
      

ownConfigOpts

None
Value:
{'callback': {'defaultValue': None, 'type': 'None', 'description': '??
?'},
 'immediate': {'defaultValue': 1,
               'description': 'if set to 0, checking a button does not
 call the callback',
               'type': 'boolean'},
 'sfcfg': {'defaultValue': {},
           'description': 'scrolled frame Tkinter configuration dict',
...