def onFacility(self, facility): guielement = Base.onFacility(self, facility) #guielement.Enable( False ) return guielement
def onDiagonalPostCreation(self, trait, guielement ): Base.postCreation( self, trait, guielement ) guielement.SetToolTipString( "[ width, height, thickness ] of vanadium sample" ) return
def postCreation(self, trait, guielement): if trait.name() == "dataformat": self.onDataformatPostCreation( trait, guielement ) if trait.name() == "diagonal": self.onDiagonalPostCreation( trait, guielement ) else: Base.postCreation( self, trait, guielement ) return
def onDataformatPostCreation( self, dataformat, guielement ): Base.postCreation( self, dataformat, guielement ) invDialog = self.parent invDialog.Bind(wx.EVT_COMBOBOX, self.OnDataformatChange, guielement) guielement.SetToolTipString( dataformat.tip() ) return