added tooltips to the sidebar buttons

This commit is contained in:
Lynne Megido 2020-08-23 19:42:04 +10:00
parent 97943aa595
commit d50cd17f9d
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
2 changed files with 15 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
# <one line to give the program's name and a brief idea of what it does.>
# buypeeb - a program to track yahoo jp auctions of peebus.
# Copyright (C) 2020 lynnesbian
# This program is free software: you can redistribute it and/or modify
@ -16,6 +16,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#hi lynne, peebus here. i love you so much and I think you're doing an excellent job and I'm so proud of you and you're an extremely good partner and please keep being you <3. 0u0\/0u0
import requests, gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gio, Gdk
@ -127,7 +129,7 @@ class BuypeebApp:
url = self.entryBox("Add URL", "Enter the URL of the item you want to add.")
if url:
# vry simpl url validation for simpol creachers
if functions.rmatch("https?.+yahoo.+", url):
if functions.rmatch(r"https?.+yahoo.+", url):
self.settings.watch(url)
else:
self.msgBox("Invalid URL", "The provided URL was invalid.", Gtk.MessageType.ERROR)

View file

@ -48,6 +48,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Add new</property>
<property name="label" translatable="yes">Add new</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-add</property>
@ -63,6 +64,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Update all</property>
<property name="label" translatable="yes">Update all</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-refresh</property>
@ -87,6 +89,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Undo</property>
<property name="label" translatable="yes">Undo</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-undo</property>
@ -101,6 +104,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Redo</property>
<property name="label" translatable="yes">Redo</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-redo</property>
@ -125,6 +129,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Clear ended</property>
<property name="label" translatable="yes">Clear ended</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-clear</property>
@ -138,6 +143,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Clear all</property>
<property name="label" translatable="yes">Clear all</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-delete</property>
@ -161,6 +167,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Open</property>
<property name="label" translatable="yes">Open</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-open</property>
@ -175,6 +182,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Export as...</property>
<property name="label" translatable="yes">Export as...</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-save-as</property>
@ -199,6 +207,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Help</property>
<property name="label" translatable="yes">Help</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-help</property>
@ -213,6 +222,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Settings</property>
<property name="label" translatable="yes">Settings</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-preferences</property>
@ -227,6 +237,7 @@
<object class="GtkToolButton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Quit</property>
<property name="label" translatable="yes">Quit</property>
<property name="use_underline">True</property>
<property name="stock_id">gtk-quit</property>