def setupGUI(self): self.set_default_size(700,500) self.set_title(self.programName) # Set a handler for delete_event that immediately # exits GTK. self.connect("delete_event", self.delete_event) # Sets the border width of the window. self.set_border_width(0) self.hpane = gtk.HPaned() self.add(self.hpane) #self.setupMenu() self.inner_pane = gtk.VPaned() self.hpane.add1(self.inner_pane) self.upper_hbox = gtk.HBox() self.lower_vbox = gtk.VBox() self.inner_pane.add1(self.upper_hbox) self.inner_pane.add2(self.lower_vbox) self.setupCanvas() #self.setupLog() self.set_icon_list(eegpy_logo("small"), eegpy_logo("large")) self.show_all() self.panePosDef = self.hpane.get_position()
def setupGUI(self): self.set_default_size(700, 500) self.set_title(self.programName) # Set a handler for delete_event that immediately # exits GTK. self.connect("delete_event", self.delete_event) # Sets the border width of the window. self.set_border_width(0) self.hpane = gtk.HPaned() self.add(self.hpane) #self.setupMenu() self.inner_pane = gtk.VPaned() self.hpane.add1(self.inner_pane) self.upper_hbox = gtk.HBox() self.lower_vbox = gtk.VBox() self.inner_pane.add1(self.upper_hbox) self.inner_pane.add2(self.lower_vbox) self.setupCanvas() #self.setupLog() self.set_icon_list(eegpy_logo("small"), eegpy_logo("large")) self.show_all() self.panePosDef = self.hpane.get_position()
def __init__(self, title="eegpy - information", text=""): gtk.Dialog.__init__(self, title, None, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_OK, gtk.RESPONSE_OK)) self.hbox = gtk.HBox() self.vbox.pack_start(self.hbox, padding=20) logo = gtk.Image() logo.set_from_pixbuf(eegpy_logo("large").scale_simple(147,134,gtk.gdk.INTERP_BILINEAR)) self.hbox.pack_start(logo, padding=20) self.hbox.pack_start(gtk.Label(text), padding=20) self.vbox.show_all()
def __init__(self, title="eegpy - information", text=""): gtk.Dialog.__init__(self, title, None, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_OK, gtk.RESPONSE_OK)) self.hbox = gtk.HBox() self.vbox.pack_start(self.hbox, padding=20) logo = gtk.Image() logo.set_from_pixbuf( eegpy_logo("large").scale_simple(147, 134, gtk.gdk.INTERP_BILINEAR)) self.hbox.pack_start(logo, padding=20) self.hbox.pack_start(gtk.Label(text), padding=20) self.vbox.show_all()