Skip to content

Commit

Permalink
[start] As per many request: merge the select and launch buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Dec 4, 2014
1 parent c876d36 commit e3da890
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def set_backups(self, widget):
self.find_controlpanel_files()

def launch(self, widget):
self.accept(widget)
os.system("./paparazzi &");
gtk.main_quit()

Expand Down Expand Up @@ -382,11 +383,11 @@ def __init__(self):
self.my_vbox.pack_start(self.btnBackups, False)

##### Buttons
self.btnAccept = gtk.Button("Set Selected Files As Active")
self.btnAccept.connect("clicked", self.accept)
self.btnAccept.set_tooltip_text("Set Conf/Control_Panel as Active")
#self.btnAccept = gtk.Button("Set Selected Files As Active")
#self.btnAccept.connect("clicked", self.accept)
#self.btnAccept.set_tooltip_text("Set Conf/Control_Panel as Active")

self.btnLaunch = gtk.Button("Launch Paparazzi")
self.btnLaunch = gtk.Button("Launch Paparazzi with selected configuration")
self.btnLaunch.connect("clicked", self.launch)
self.btnLaunch.set_tooltip_text("Launch Paparazzi with current conf.xml")

Expand All @@ -397,7 +398,7 @@ def __init__(self):

self.toolbar = gtk.HBox()
self.toolbar.set_size_request(0,60)
self.toolbar.pack_start(self.btnAccept)
#self.toolbar.pack_start(self.btnAccept)
self.toolbar.pack_start(self.btnLaunch)
self.toolbar.pack_start(self.btnExit)

Expand Down

0 comments on commit e3da890

Please sign in to comment.