Ticket #40436: patch-DigitalWindow.py.diff
File patch-DigitalWindow.py.diff, 1.8 KB (added by ynaito@…, 11 years ago) |
---|
-
./ecell/frontend/session-monitor/plugins/DigitalWindow.
old new 53 53 OsogoPluginWindow.__init__( self, aDirName, aData, \ 54 54 aPluginManager, aRoot ) 55 55 56 aFullPNString = createFullPNString( self.getFullPN() ) 57 aValue = self.theSession.getEntityProperty( aFullPNString ) 56 aValue = self.theSession.getEntityProperty( self.getFullPN() ) 58 57 if not operator.isNumberType( aValue ): 59 aMessage = "Error: (%s) is not numerical data" % aFullPNString58 aMessage = "Error: (%s) is not numerical data" % createFullPNString( self.getFullPN() ) 60 59 self.thePluginManager.printMessage( aMessage ) 61 60 aDialog = ConfirmWindow.ConfirmWindow(0,aMessage,'Error!') 62 61 raise TypeError( aMessage ) … … 66 65 def openWindow(self): 67 66 OsogoPluginWindow.openWindow(self) 68 67 69 aFullPNString = createFullPNString( self.getFullPN() ) 70 aValue = self.theSession.getEntityProperty( aFullPNString ) 71 anAttribute = self.theSession.getEntityPropertyAttributes( aFullPNString ) 68 aValue = self.theSession.getEntityProperty( self.getFullPN() ) 69 anAttribute = self.theSession.getEntityPropertyAttributes( self.getFullPN() ) 72 70 73 71 self.thePluginManager.appendInstance( self ) 74 72 … … 98 96 # return -> None 99 97 # ------------------------------------------------------ 100 98 def update( self ): 101 aFullPNString = createFullPNString( self.getFullPN() ) 102 aValue = self.theSession.getEntityProperty( aFullPNString ) 99 aValue = self.theSession.getEntityProperty( self.getFullPN() ) 103 100 self["value_frame"].set_text( str( aValue ) ) 104 101 105 102 # end of update