Example #1
0
 def __init__(self, parent):
     table, self.dialog = create_table_dialog(parent, "Save from memory", 3, 2)
     self.file = FselEntry(self.dialog)
     table_add_widget_row(table, 0, "File name:", self.file.get_container())
     self.address = table_add_entry_row(table, 1, "Save address:", 6)
     self.address.connect("activate", dialog_apply_cb, self.dialog)
     self.length = table_add_entry_row(table, 2, "Number of bytes:", 6)
     self.length.connect("activate", dialog_apply_cb, self.dialog)
Example #2
0
 def __init__(self, parent):
     table, self.dialog = create_table_dialog(parent, "Save from memory", 3, 2)
     self.file = FselEntry(self.dialog)
     table_add_widget_row(table, 0, "File name:", self.file.get_container())
     self.address = table_add_entry_row(table, 1, "Save address:", 6)
     self.address.connect("activate", dialog_apply_cb, self.dialog)
     self.length = table_add_entry_row(table, 2, "Number of bytes:", 6)
     self.length.connect("activate", dialog_apply_cb, self.dialog)
Example #3
0
 def __init__(self, parent):
     chooser = gtk.FileChooserButton('Select a File')
     chooser.set_local_only(True)  # Hatari cannot access URIs
     chooser.set_width_chars(12)
     table, self.dialog = create_table_dialog(parent, "Load to memory", 2, 2)
     self.file = table_add_widget_row(table, 0, "File name:", chooser)
     self.address = table_add_entry_row(table, 1, "Load address:", 6)
     self.address.connect("activate", dialog_apply_cb, self.dialog)
Example #4
0
 def __init__(self, parent):
     chooser = gtk.FileChooserButton('Select a File')
     chooser.set_local_only(True)  # Hatari cannot access URIs
     chooser.set_width_chars(12)
     table, self.dialog = create_table_dialog(parent, "Load to memory", 2, 2)
     self.file = table_add_widget_row(table, 0, "File name:", chooser)
     self.address = table_add_entry_row(table, 1, "Load address:", 6)
     self.address.connect("activate", dialog_apply_cb, self.dialog)