本文整理汇总了Python中gtk.VBox类的典型用法代码示例。如果您正苦于以下问题:Python VBox类的具体用法?Python VBox怎么用?Python VBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VBox类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ScrolledFieldBox
class ScrolledFieldBox(ScrolledWindow):
def __init__(self, all_fields, select_fun, name='ScrolledFieldBox'):
ScrolledWindow.__init__(self)
self.set_name(name)
self.vbox = VBox()
self.vbox.show()
self.add_with_viewport(self.vbox)
示例2: __init__
def __init__(self, name='CommandBox'):
VBox.__init__(self)
self.set_name(name)
self.tbar = HandleToolbar()
self.menubar = SimpleMenuBar()
self.pack_start(self.menubar, False, False, 0)
self.pack_end(self.tbar, False, False, 0)
self.show()
示例3: __init__
def __init__(self):
VBox.__init__(self)
self.status_label = Label('blank')
self.source_label = Label('blank')
self.pack_start(self.status_label, FALSE, FALSE, 0)
self.pack_end(self.source_label, FALSE, FALSE, 0)
self.status_label.show()
self.source_label.show()
self.show()
示例4: RecordBox
class RecordBox(ScrolledWindow, HasRecordBox):
def __init__(self, data, name='RecordBox'):
ScrolledWindow.__init__(self)
self.set_name(name)
self.vbox = VBox()
self.add_with_viewport(self.vbox)
HasRecordBox.__init__(self, self.vbox, data, name=name)
self.vbox.show()
self.show()
self.vbox.set_events(BUTTON_PRESS_MASK)
示例5: MenuWindow
class MenuWindow(Window, HasMenuDialog):
def __init__(self, name='MenuVBoxWindow'):
Window.__init__(self)
self.set_name(name)
self.vbox = VBox()
self.add(self.vbox)
self.menubar = SimpleMenuBar()
self.vbox.pack_start(self.menubar, False, False, 0)
self.vbox.show()
self.show()
示例6: __init__
def __init__(self, maxthreads=3):
VBox.__init__(self)
self.threads = []
self.queue = DownloadQueue()
self.show()
for i in range(maxthreads):
thread = _DownloadStatus(self.queue)
thread.start()
self.threads.append(thread)
self.pack_end(thread, FALSE, FALSE, 0)
示例7: TwinListCndWin
class TwinListCndWin(Window):
def __init__(self):
Window.__init__(self)
self.vbox = VBox()
self.button_box = HBox()
self.listbox = TwinCList()
self.vbox.add(self.listbox)
self.add(self.vbox)
self.vbox.show()
self.show()
self.set_size_request(300, 200)
self.listbox.set_position(140)
示例8: __init__
def __init__(self, conn, name='BaseDiffer'):
VBox.__init__(self)
self.set_name(name)
self.conn = conn
self.view = TwinScrollCList(name=name)
self.cursor = StatementCursor(self.conn)
suites = [r.suite for r in self.cursor.select(table='suites', order='suite')]
self.suite_bar = SuiteBar(suites, name=name)
self.trait_bar = TraitBar(name=name)
self.pack_end(self.suite_bar, 0, 0, 0)
self.pack_end(self.trait_bar, 0, 0, 0)
self.add(self.view)
self.suite_bar.show()
self.show()
示例9: __init__
def __init__(self):
VBox.__init__(self)
self.form = GeoForm()
self.result = GeoResult()
self.pack_start(self.form, False)
self.pack_start(self.result)
self.login = GeoCaching()
self.search = None
self.form.connect('search', self.do_search)
示例10: _setup_layout
def _setup_layout(self):
self.vbox = VBox(False, 0)
self.vbox.show()
self.terminal = terminal()
self.terminal.connect("child-exited", lambda _: self.close_button.show())
self.expander = expander_new_with_mnemonic(_("_Terminal"))
self.expander.set_expanded(False)
self.expander.add(self.terminal)
self.expander.show_all()
self.close_button = Button(stock=STOCK_CLOSE)
self.close_button.connect("clicked", lambda _: self.destroy())
scr = ScrolledWindow()
scr.set_policy ("automatic", "automatic")
scr.add (self.tree)
scr.show()
vpaned = VPaned()
vpaned.add1(scr)
vpaned.add2(self.expander)
vpaned.set_position (260)
vpaned.show()
self.vbox.pack_start(vpaned, True, True, 0)
self.vbox.pack_start(self.close_button, False, False, 0)
self.add(self.vbox)
return
示例11: __init__
def __init__(self, icon):
Window.__init__(self, WINDOW_TOPLEVEL)
self.set_property("skip-taskbar-hint", True)
self.set_property("destroy-with-parent", True)
self.set_modal(True)
self.set_position(WIN_POS_CENTER)
self.vbox = VBox(False, 0)
self.terminal = terminal()
self.terminal.connect("child-exited",
lambda _: self.close_button.show())
self.terminal.show()
self.close_button = Button(stock=STOCK_CLOSE)
self.close_button.connect("clicked", lambda _: self.destroy())
self.vbox.pack_start(self.terminal, False, False, 0)
self.vbox.pack_start(self.close_button, False, False, 0)
self.vbox.show()
self.add(self.vbox)
self.set_icon(pixbuf_new_from_file(icon))
示例12: __init__
def __init__(self):
from gtk import Window,WINDOW_TOPLEVEL,Button,Label,HBox,Entry,VBox,VSeparator
self.window = Window(WINDOW_TOPLEVEL)
self.window.set_title("Slideshow")
self.window.connect("delete_event", self.delete_event)
self.window.set_border_width(10)
self.vbox = VBox(False, 0)
self.window.add(self.vbox)
self.hbox1 = HBox(False, 0)
self.vbox.pack_start(self.hbox1, True, True, 1)
self.hbox = HBox(False, 0)
self.vbox.pack_start(self.hbox, False, False, 1)
self.hbox2 = HBox(False, 0)
self.vbox.pack_start(self.hbox2, True, True, 1)
self.label = Label('Identifikační číslo:')
self.hbox.pack_start(self.label, False, False, 1)
self.label.show()
self.editable = Entry()
self.editable.connect('key_press_event', self.key_press_event)
self.hbox.pack_start(self.editable, True, True, 1)
self.editable.show()
self.button = Button("Začít")
self.button.connect("clicked", self.callback)
self.button.set_receives_default(True)
self.button.set_can_focus(True)
self.hbox.pack_start(self.button, False, False, 1)
self.button.show()
self.hbox1.show()
self.hbox.show()
self.hbox2.show()
self.vbox.show()
self.window.show()
示例13: __init__
def __init__(self):
ScrolledWindow.__init__(self)
self.set_policy(POLICY_NEVER, POLICY_ALWAYS)
self.box = VBox()
self.add_with_viewport(self.box)
示例14: GeoResult
class GeoResult(ScrolledWindow):
def __init__(self):
ScrolledWindow.__init__(self)
self.set_policy(POLICY_NEVER, POLICY_ALWAYS)
self.box = VBox()
self.add_with_viewport(self.box)
def add_cache(self, cache):
self.box.pack_start(GtkCache(cache))
'''
示例15: __init__
def __init__(self, name='MenuVBoxWindow'):
Window.__init__(self)
self.set_name(name)
self.vbox = VBox()
self.add(self.vbox)
self.menubar = SimpleMenuBar()
self.vbox.pack_start(self.menubar, FALSE, FALSE, 0)
self.vbox.show()
self.show()