mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 14:35:51 +08:00
[pprzcenter] added a checkbox to launch the new python gui (#1912)
This commit is contained in:
committed by
Felix Ruess
parent
d7498f8ae8
commit
1b9427dcc9
@@ -125,7 +125,13 @@ class ConfChooser(object):
|
||||
|
||||
def launch(self, widget):
|
||||
self.accept(widget)
|
||||
self.pp = subprocess.Popen("./paparazzi")
|
||||
|
||||
args = ["./paparazzi"]
|
||||
|
||||
if self.btnPythonGUI.get_active():
|
||||
args += ["-python"]
|
||||
|
||||
self.pp = subprocess.Popen(args)
|
||||
self.window.destroy()
|
||||
|
||||
def backupconf(self, use_personal=False):
|
||||
@@ -369,6 +375,10 @@ class ConfChooser(object):
|
||||
self.btnBackups.connect("toggled", self.set_backups)
|
||||
self.my_vbox.pack_start(self.btnBackups, False)
|
||||
|
||||
# show gui button
|
||||
self.btnPythonGUI = gtk.CheckButton("new python center (beta)")
|
||||
self.my_vbox.pack_start(self.btnPythonGUI, False)
|
||||
|
||||
# Buttons
|
||||
self.btnAccept = gtk.Button("Set Active")
|
||||
self.btnAccept.connect("clicked", self.accept)
|
||||
|
||||
Reference in New Issue
Block a user