- Default to 800 x 600 resolution.

- Check that a log is selected before attempting to export.
pull/17/head
Christian Jacobs 2013-06-30 14:38:08 +01:00
rodzic 534eec3f95
commit b680e4c955
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -44,7 +44,7 @@ class PyQSO(Gtk.Window):
# Call the constructor of the super class (Gtk.Window)
Gtk.Window.__init__(self, title="PyQSO 0.1a.dev")
self.set_size_request(500, 300)
self.set_size_request(800, 600)
self.set_position(Gtk.WindowPosition.CENTER)
possible_icon_paths = [os.path.join(pyqso_path, "icons", "log_64x64.png")]
for icon_path in possible_icon_paths:

Wyświetl plik

@ -563,6 +563,10 @@ class Logbook(Gtk.Notebook):
return
def export_log(self, widget=None):
page_index = self.get_current_page() # Gets the index of the selected tab in the logbook
if(page_index == 0): # If we are on the Summary page...
logging.debug("No log currently selected!")
return
log_index = self.get_log_index()
log = self.logs[log_index]