Example #1
0
 def setEnable(self, doEnable):
     """Enable or disable the checkbutton.
     If disabled then the associated widget is hidden,
     else it is shown or hidden according to the checkbutton
     """
     Checkbutton.setEnable(self, doEnable)
     self._updVisible()
Example #2
0
 def __init__(self,
     master,
     wdg,
     wdgName,
     helpText = None,
     helpURL = None,
     takefocus = True,
 ):
     self.__wdg = wdg
     
     try:
         var = wdg.getShowVar()
     except AttributeError:
         var = Tkinter.BooleanVar()
     
     Checkbutton.__init__(self,
         master = master,
         text = wdgName,
         helpText = helpText,
         helpURL = helpURL,
         takefocus = takefocus,
         var = var,
         callFunc = self._updVisible,
     )