diff options
author | B Stack <bgstack15@gmail.com> | 2019-06-12 21:42:27 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-06-12 21:42:27 -0400 |
commit | a7ac543719070a28545e354ff54c585af426df46 (patch) | |
tree | b69e00c8e4804be1b849b40c073f0b706b2d4295 /lmlib.py | |
parent | split program into lib and gtk frontend (diff) | |
download | logout-manager-a7ac543719070a28545e354ff54c585af426df46.tar.gz logout-manager-a7ac543719070a28545e354ff54c585af426df46.tar.bz2 logout-manager-a7ac543719070a28545e354ff54c585af426df46.zip |
add main components for tcl frontend
The tcl version now accepts button presses and key presses. It has
the buttons in the same layout as the gtk frontend.
Also had to modify the action functions, to accept an additional
useless parameter because of how tkinter was calling the functions.
Still need to add icons.
Diffstat (limited to 'lmlib.py')
-rw-r--r--[-rwxr-xr-x] | lmlib.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -19,27 +19,27 @@ logout_manager_version="2019-06-12b" class Actions: @staticmethod - def hibernate(config): + def hibernate(config, event=None): #print("need to run the /sys/power/state trick, if available") print(config.get_hibernate_command()) @staticmethod - def lock(config): + def lock(config, event=None): #print("please lock the screen.") print(config.get_lock_command()) @staticmethod - def logout(config): + def logout(config, event=None): #print("please log out of current session!") print(config.get_logout_command()) @staticmethod - def reboot(config): + def reboot(config, event=None): #print("please reboot.") print(config.get_reboot_command()) @staticmethod - def shutdown(config): + def shutdown(config, event=None): #print("please shut yourself down!") print(config.get_shutdown_command()) |