当前位置: 首页>>代码示例>>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;未经允许,请勿转载。