kopia lustrzana https://github.com/ctjacobs/pyqso
Make the users aware if they try to use a feature that is not currently implemented.
rodzic
5cef2955d8
commit
9e0c5249c1
|
@ -287,6 +287,9 @@ class Logbook(Gtk.Notebook):
|
|||
dialog.destroy()
|
||||
return
|
||||
|
||||
def search_log_callback(self, widget):
|
||||
print "Search feature has not yet been implemented."
|
||||
|
||||
def get_number_of_logs(self):
|
||||
return len(self.logs)
|
||||
|
||||
|
|
|
@ -297,5 +297,6 @@ class RecordDialog(Gtk.Dialog):
|
|||
def lookup_callback(self, widget):
|
||||
# TODO: If a session doesn't already exist: Show a username and password dialog, and initiate a session.
|
||||
# Get the callsign-related data from the qrz.com database.
|
||||
print "Callsign lookup feature has not yet been implemented."
|
||||
return
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ class Toolbar(Gtk.HBox):
|
|||
|
||||
# Save log
|
||||
icon = Gtk.Image()
|
||||
icon.set_from_stock(Gtk.STOCK_SAVE, Gtk.IconSize.BUTTON)
|
||||
icon.set_from_stock(Gtk.STOCK_FLOPPY, Gtk.IconSize.BUTTON)
|
||||
button = Gtk.Button()
|
||||
button.add(icon)
|
||||
button.set_tooltip_text('Save log')
|
||||
|
@ -93,4 +93,15 @@ class Toolbar(Gtk.HBox):
|
|||
button.connect("clicked", parent.logbook.delete_record_callback, parent)
|
||||
self.pack_start(button, False, False, 0)
|
||||
|
||||
self.pack_start(Gtk.SeparatorMenuItem(), False, False, 0)
|
||||
|
||||
# Search log
|
||||
icon = Gtk.Image()
|
||||
icon.set_from_stock(Gtk.STOCK_FIND, Gtk.IconSize.BUTTON)
|
||||
button = Gtk.Button()
|
||||
button.add(icon)
|
||||
button.set_tooltip_text('Search log')
|
||||
button.connect("clicked", parent.logbook.search_log_callback)
|
||||
self.pack_start(button, False, False, 0)
|
||||
|
||||
return
|
||||
|
|
Ładowanie…
Reference in New Issue