[EMAIL PROTECTED] wrote: > Reorganizing some classes...previously both RATextBox and RANumBox were > based on dTextBox. Now I want to base RANumBox off RATextBox. I also > moved some code from the afterInit to the setProperties and now when I run > it the form is giving me the too many parameters error.(see below) > > Any suggestions as to what is wrong? > > Thanks, > Larry Long > > class RATextBox(dabo.ui.dTextBox): > def setProperties(self): > self.SelectOnEntry = True > if sys.platform == 'win32': > self._addWindowStyleFlag(wx.TE_PROCESS_ENTER) > > if self.InputType is 'I': > self.Value=0 > elif self.InputType is 'N': > self.Value=0.0 > else: > self.Value='' > > try: > if self.AddAllowed: > pass > except: > self.AddAllowed=True > > self.DynamicForeColor = self.ROForeColor > self.DynamicBackColor = self.ROBackColor > > class RANumBox(RATextBox): > def setProperties(self): > self.super() > ....other code > > > TypeError: setProperties() takes exactly 1 argument (2 given)
Try overriding initProperties() instead of setProperties(); they do different things. -- pkm ~ http://paulmcnett.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
