本文整理汇总了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
示例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()
示例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)
示例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)
示例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()
示例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()