20 lines
627 B
Python
20 lines
627 B
Python
#!/usr/bin/python
|
|
from . import common
|
|
from . import testchooser
|
|
from gi.repository import GObject
|
|
from gi.repository import Gtk
|
|
|
|
class TestChooser(Gtk.Box):
|
|
def __init__(self):
|
|
Gtk.Box.__init__(self, orientation=Gtk.Orientation.VERTICAL)
|
|
self.stack = testchooser.Stack()
|
|
self.append(Gtk.StackSwitcher(stack=self.stack))
|
|
self.append(self.stack)
|
|
self.stack.connect("test-selected", self.on_test_selected)
|
|
|
|
def on_test_selected(self, stack, path):
|
|
self.emit("test-selected", path)
|
|
|
|
@GObject.Signal(arg_types=(testchooser.Path,))
|
|
def test_selected(self, path): pass
|