Ignore:
Timestamp:
Jul 5, 2017, 10:27:17 AM (3 years ago)
Author:
hectorgh
Message:

wip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-shutdowner/trunk/fuentes/lliurex-shutdowner.install/usr/share/lliurex-shutdowner/LliurexShutdowner.py

    r5420 r5451  
    9999                self.main_window.connect("delete_event",self.check_changes)
    100100                self.login_button.connect("clicked",self.login_clicked)
     101                self.user_entry.connect("activate",self.entries_press_event)
     102                self.password_entry.connect("activate",self.entries_press_event)
     103                self.server_ip_entry.connect("activate",self.entries_press_event)
    101104               
    102105                self.cron_switch.connect("notify::active",self.cron_switch_changed)
     
    108111       
    109112        # SIGNALS ########################################################
     113       
     114        def entries_press_event(self,widget):
     115               
     116                self.login_clicked(None)
     117               
     118        #def entries_press_event
     119       
    110120       
    111121        def cron_switch_changed(self,widget,data):
     
    163173                self.login_msg_label.set_text(_("Validating user..."))
    164174               
    165                 widget.set_sensitive(False)
     175                self.login_button.set_sensitive(False)
    166176                self.validate_user(user,password)
    167177               
Note: See TracChangeset for help on using the changeset viewer.