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


Python ScrolledWindow.show方法代碼示例

本文整理匯總了Python中gtk.ScrolledWindow.show方法的典型用法代碼示例。如果您正苦於以下問題:Python ScrolledWindow.show方法的具體用法?Python ScrolledWindow.show怎麽用?Python ScrolledWindow.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在gtk.ScrolledWindow的用法示例。


在下文中一共展示了ScrolledWindow.show方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _setup_layout

# 需要導入模塊: from gtk import ScrolledWindow [as 別名]
# 或者: from gtk.ScrolledWindow import show [as 別名]
    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,代碼行數:33,代碼來源:dialogs.py

示例2: __init__

# 需要導入模塊: from gtk import ScrolledWindow [as 別名]
# 或者: from gtk.ScrolledWindow import show [as 別名]
class Dan:
	def __init__(self):
		self.url = "http://www.bibud.com"
		self.setupWindow()
		self.setupBrowser()
		main()
	def setupWindow(self):
		self.window_title = "Bibud"
		self.window = Window()
		self.window.show()
		self.window.connect("destroy-event", self.browser_quit)
		self.window.resize(1024,768)
		self.window.set_title(self.window_title)
	def setupBrowser(self):
		self.browser = WebView()
		self.browser.show()
		self.browser.open(self.url)
		self.scroller = ScrolledWindow()
		self.scroller.add(self.browser)
		self.window.add(self.scroller)
		self.browser.connect("title-changed", self.title_changed)
		self.scroller.show()
	def eTitleChanged(self, webview, frame, title):
		self.window.set_title(title)
	def eQuit(self):
		main_quit()
開發者ID:ColinKinloch,項目名稱:projects,代碼行數:28,代碼來源:browser.py

示例3: ListWin

# 需要導入模塊: from gtk import ScrolledWindow [as 別名]
# 或者: from gtk.ScrolledWindow import show [as 別名]
class ListWin(CommandBoxWindow, HasDialogs, HasListbox):
    def __init__(self):
        CommandBoxWindow.__init__(self)
        self.scroll = ScrolledWindow()
        self.vbox.add(self.scroll)
        self.scroll.show()
        if hasattr(self, 'menu'):
            HasListbox.__init__(self, self.scroll, rcmenu=self.menu)
        else:
            HasListbox.__init__(self, self.scroll)
開發者ID:BackupTheBerlios,項目名稱:paella-svn,代碼行數:12,代碼來源:base.py

示例4: CList

# 需要導入模塊: from gtk import ScrolledWindow [as 別名]
# 或者: from gtk.ScrolledWindow import show [as 別名]
class CList(Dialog, HasListbox):
    def __init__(self, message, name='MyCListDialog',
                 dnd=None, targets=[]):
        Dialog.__init__(self, message, name=name)
        self.set_name(name)
        self.scroll = ScrolledWindow()
        HasListbox.__init__(self, self.scroll, name=name,
                            dnd=dnd, targets=targets)
        self.scroll.show()
        self.vbox.pack_start(self.scroll, TRUE, TRUE, 0)
        self.set_size_request(150, 300)
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:13,代碼來源:dialogs.py

示例5: _ScrollBox

# 需要導入模塊: from gtk import ScrolledWindow [as 別名]
# 或者: from gtk.ScrolledWindow import show [as 別名]
class _ScrollBox(Dialog):
    def __init__(self, message, name='MyScrollBox', type='v'):
        Dialog.__init__(self, message, name=name)
        self.scroll = ScrolledWindow()
        self.scroll.show()
        self.vbox.pack_start(self.scroll, TRUE, TRUE, 0)
        self.set_size_request(150, 300)
        if type =='v':
            self.mbox = VBox()
        else:
            self.mbox = HBox()
        self.scroll.add_with_viewport(self.mbox)
        self.mbox.show()
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:15,代碼來源:dialogs.py

示例6: _TopListView

# 需要導入模塊: from gtk import ScrolledWindow [as 別名]
# 或者: from gtk.ScrolledWindow import show [as 別名]
class _TopListView(VPaned, HasListbox, HasDialogs):
    def __init__(self, name='_LeftListView'):
        VPaned.__init__(self)
        self.set_name(name)
        self.scroll = ScrolledWindow()
        self.add1(self.scroll)
        self.scroll.show()
        if hasattr(self, 'menu'):
            HasListbox.__init__(self, self.scroll, rcmenu=self.menu)
        else:
            HasListbox.__init__(self, self.scroll)
        self.set_size_request(300,200)
        self.set_position(140)
        self.show()
開發者ID:BackupTheBerlios,項目名稱:useless-svn,代碼行數:16,代碼來源:middle.py


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