Skip to content

Commit

Permalink
Start tooltip implementation for #570 but the func appears to be brok…
Browse files Browse the repository at this point in the history
…en on macOS and wxPython. See GH issue
  • Loading branch information
machawk1 committed May 16, 2024
1 parent 9eda87c commit b75e433
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bundledApps/WAIL.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,17 @@ def __init__(self, parent):
self.archive_now_button = wx.Button(
self, wx.ID_ANY, config.button_label_archive_now
)
self.archive_now_button.SetToolTip(wx.ToolTip(config.tooltip_archive_now))

self.check_archive_status = wx.Button(
self, wx.ID_ANY, config.button_label_check_status
)
self.check_archive_status.SetToolTip(wx.ToolTip(config.tooltip_check_status))

self.view_archive = wx.Button(self, wx.ID_ANY,
config.button_label_view_archive)
self.view_archive.SetToolTip(wx.ToolTip(config.tooltip_view_archive))
# self.view_archive.

basic_sizer_buttons.Add(self.view_archive, proportion=1,
flag=wx.CENTER)
Expand Down
9 changes: 9 additions & 0 deletions bundledApps/WAILConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@
'This URI is not present in the local archive')
tooltip_local_archive_included = (
'This URI is present in the local archive')
tooltip_view_archive = (
'View most recent archived copy of the current URL in your browser'
)
tooltip_check_status = (
'Check the local archive to see if captures already exist'
)
tooltip_archive_now = (
'Start a crawl using the current URL'
)

text_statusbar_no_captures = 'There are no local captures for this URL.'
text_statusbar_wayback_not_running = 'Wayback is not running. Click again to fix.'
Expand Down

0 comments on commit b75e433

Please sign in to comment.