Skip to content

Commit

Permalink
Add labels to app buttons (issue #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMouse92 committed Dec 30, 2019
1 parent 4416af5 commit 0b8fc91
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions timecard/interface/appcontrols.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ def _set_mode_default(cls):
"""Set buttons to those for Log (default) mode."""
cls._disconnect_buttons()

cls.btn_settings.setText("")
cls.btn_settings.setText("Settings")
cls.btn_settings.setIcon(QIcon.fromTheme('preferences-system'))
cls.btn_settings.setWhatsThis("View and edit settings.")
cls.btn_settings.clicked.connect(cls.settings)

cls.btn_about.setText("")
cls.btn_about.setText("About")
cls.btn_about.setIcon(QIcon.fromTheme('help-about'))
cls.btn_about.setWhatsThis("View Timecard credits and license.")
cls.btn_about.clicked.connect(cls.about)

cls.btn_help.setText("")
cls.btn_help.setText("Help")
cls.btn_help.setIcon(QIcon.fromTheme('help-contents'))
cls.btn_help.setWhatsThis("Switch to help mode.")
cls.btn_help.setWhatsThis("Display help for a clicked item.")
cls.btn_help.clicked.connect(cls.help)

cls.btn_quit.setText("")
cls.btn_quit.setText("Quit")
cls.btn_quit.setIcon(QIcon.fromTheme('application-exit'))
cls.btn_quit.setWhatsThis("Quit Timecard.")
cls.btn_quit.clicked.connect(cls.quit)
Expand All @@ -90,22 +90,22 @@ def _set_mode_settings(cls):
"""Set buttons to those for Settings mode."""
cls._disconnect_buttons()

cls.btn_settings.setText("")
cls.btn_settings.setText("Log")
cls.btn_settings.setIcon(QIcon.fromTheme('go-home'))
cls.btn_settings.setWhatsThis("Return to time log.")
cls.btn_settings.clicked.connect(cls.default)

cls.btn_about.setText("")
cls.btn_about.setText("About")
cls.btn_about.setIcon(QIcon.fromTheme('help-about'))
cls.btn_about.setWhatsThis("View Timecard credits and license.")
cls.btn_about.clicked.connect(cls.about)

cls.btn_help.setText("")
cls.btn_help.setText("Help")
cls.btn_help.setIcon(QIcon.fromTheme('help-contents'))
cls.btn_help.setWhatsThis("Switch to help mode.")
cls.btn_help.setWhatsThis("Display help for a clicked item.")
cls.btn_help.clicked.connect(cls.help)

cls.btn_quit.setText("")
cls.btn_quit.setText("Quit")
cls.btn_quit.setIcon(QIcon.fromTheme('application-exit'))
cls.btn_quit.setWhatsThis("Quit Timecard.")
cls.btn_quit.clicked.connect(cls.quit)
Expand All @@ -115,22 +115,22 @@ def _set_mode_about(cls):
"""Set buttons to those for About mode."""
cls._disconnect_buttons()

cls.btn_settings.setText("")
cls.btn_settings.setText("Settings")
cls.btn_settings.setIcon(QIcon.fromTheme('preferences-system'))
cls.btn_settings.setWhatsThis("View and edit settings.")
cls.btn_settings.clicked.connect(cls.settings)

cls.btn_about.setText("")
cls.btn_about.setText("Log")
cls.btn_about.setIcon(QIcon.fromTheme('go-home'))
cls.btn_about.setWhatsThis("Return to time log.")
cls.btn_about.clicked.connect(cls.default)

cls.btn_help.setText("")
cls.btn_help.setText("Help")
cls.btn_help.setIcon(QIcon.fromTheme('help-contents'))
cls.btn_help.setWhatsThis("Switch to help mode.")
cls.btn_help.setWhatsThis("Display help for a clicked item.")
cls.btn_help.clicked.connect(cls.help)

cls.btn_quit.setText("")
cls.btn_quit.setText("Quit")
cls.btn_quit.setIcon(QIcon.fromTheme('application-exit'))
cls.btn_quit.setWhatsThis("Quit Timecard.")
cls.btn_quit.clicked.connect(cls.quit)
Expand All @@ -140,22 +140,22 @@ def _set_mode_quit(cls):
"""Set buttons to those for Quit Prompt mode."""
cls._disconnect_buttons()

cls.btn_settings.setText("")
cls.btn_settings.setText("Settings")
cls.btn_settings.setIcon(QIcon.fromTheme('preferences-system'))
cls.btn_settings.setWhatsThis("View and edit settings.")
cls.btn_settings.clicked.connect(cls.settings)

cls.btn_about.setText("")
cls.btn_about.setText("About")
cls.btn_about.setIcon(QIcon.fromTheme('help-about'))
cls.btn_about.setWhatsThis("View Timecard credits and license.")
cls.btn_about.clicked.connect(cls.about)

cls.btn_help.setText("")
cls.btn_help.setText("Help")
cls.btn_help.setIcon(QIcon.fromTheme('help-contents'))
cls.btn_help.setWhatsThis("Switch to help mode.")
cls.btn_help.setWhatsThis("Display help for a clicked item.")
cls.btn_help.clicked.connect(cls.help)

cls.btn_quit.setText("")
cls.btn_quit.setText("Log")
cls.btn_quit.setIcon(QIcon.fromTheme('go-home'))
cls.btn_quit.setWhatsThis("Return to time log.")
cls.btn_quit.clicked.connect(cls.default)
Expand Down

0 comments on commit 0b8fc91

Please sign in to comment.