Changeset 7860


Ignore:
Timestamp:
Aug 1, 2018, 12:20:02 PM (13 months ago)
Author:
jrpelegrina
Message:

Clean manage form control function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bell-scheduler/trunk/fuentes/bell-scheduler/python3-bellscheduler/EditBox.py

    r7825 r7860  
    294294                self.core.mainWindow.save_button.set_sensitive(False)
    295295                self.core.mainWindow.cancel_button.set_sensitive(False)
    296                 self.manage_form_control(True)
     296                self.manage_form_control(False)
    297297
    298298               
     
    339339                                self.core.mainWindow.save_button.set_sensitive(True)
    340340                                self.core.mainWindow.cancel_button.set_sensitive(True)
    341                                 self.manage_form_control(False)
     341                                self.manage_form_control(True)
    342342                                self.core.mainWindow.manage_message(True,self.check["code"],self.check["data"])
    343343                        else:   
     
    502502
    503503
    504         def manage_form_control(self,disable):
    505 
    506                 if disable:
    507                         sensitive=False
    508                 else:
    509                         sensitive=True
    510        
     504        def manage_form_control(self,sensitive):
     505
    511506                self.hour_spinbutton.set_sensitive(sensitive)
    512507                self.minute_spinbutton.set_sensitive(sensitive)
Note: See TracChangeset for help on using the changeset viewer.