當前位置: 首頁>>代碼示例>>Python>>正文


Python gtk.VBox類代碼示例

本文整理匯總了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)
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:7,代碼來源:middle.py

示例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()
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:8,代碼來源:middle.py

示例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()
開發者ID:BackupTheBerlios,項目名稱:paella-svn,代碼行數:9,代碼來源:repos_client.py

示例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)
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:10,代碼來源:middle.py

示例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()
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:10,代碼來源:windows.py

示例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)
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:10,代碼來源:utils.py

示例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)
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:13,代碼來源:windows.py

示例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()
開發者ID:BackupTheBerlios,項目名稱:paella-svn,代碼行數:14,代碼來源:differ.py

示例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)
開發者ID:LinusU,項目名稱:geocache,代碼行數:14,代碼來源:Search.py

示例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
開發者ID:BackupTheBerlios,項目名稱:gtkpacman-svn,代碼行數:31,代碼來源:dialogs.py

示例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))
開發者ID:BackupTheBerlios,項目名稱:gtkpacman-svn,代碼行數:25,代碼來源:dialogs.py

示例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()
開發者ID:pborky,項目名稱:pyslides,代碼行數:32,代碼來源:startslideshow.py

示例13: __init__

 def __init__(self):
     
     ScrolledWindow.__init__(self)
     
     self.set_policy(POLICY_NEVER, POLICY_ALWAYS)
     
     self.box = VBox()
     
     self.add_with_viewport(self.box)
開發者ID:LinusU,項目名稱:geocache,代碼行數:9,代碼來源:GeoResult.py

示例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))
        
    '''
開發者ID:LinusU,項目名稱:geocache,代碼行數:18,代碼來源:GeoResult.py

示例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()
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:9,代碼來源:windows.py


注:本文中的gtk.VBox類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。