本文整理汇总了Python中support.root_deiconify函数的典型用法代码示例。如果您正苦于以下问题:Python root_deiconify函数的具体用法?Python root_deiconify怎么用?Python root_deiconify使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了root_deiconify函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
def setUp(self):
support.root_deiconify()
xmldata = """<?xml version="1.0" ?>
<interface>
<object class="pygubu.builder.widgets.tkscrollbarhelper" id="scrollbarhelper">
<property name="scrolltype">both</property>
<property name="padx">5</property>
<property name="pady">10</property>
<property name="relief">raised</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
<child>
<object class="tk.Canvas" id="tk.Canvas_1">
<property name="background">#d9d900</property>
<property name="scrollregion">0 0 10i 10i</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
</object>
</child>
</object>
</interface>
"""
builder = pygubu.Builder()
builder.add_from_string(xmldata)
self.widget = builder.get_object('scrollbarhelper')
示例2: setUp
def setUp(self):
support.root_deiconify()
self.nb = ttk.Notebook(padding=0)
self.child1 = ttk.Label()
self.child2 = ttk.Label()
self.nb.add(self.child1, text='a')
self.nb.add(self.child2, text='b')
示例3: setUp
def setUp(self):
support.root_deiconify()
xmldata = 'test_pathchooserinput.ui'
self.builder = builder = pygubu.Builder()
builder.add_from_file(xmldata)
self.mainwindow = builder.get_object('mainwindow')
self.widget = builder.get_object('pathchooserinput1')
示例4: setUp
def setUp(self):
support.root_deiconify()
xmldata = 'test_text.ui'
self.builder = builder = pygubu.Builder()
builder.add_from_file(xmldata)
self.widget = builder.get_object('mainframe')
self.text = builder.get_object('Text_1')
示例5: setUp
def setUp(self):
support.root_deiconify()
xmldata = 'test_panedwindow.ui'
self.builder = builder = pygubu.Builder()
builder.add_from_file(xmldata)
self.widget = builder.get_object('mainframe')
self.pw1 = builder.get_object('Panedwindow_1')
self.pw2 = builder.get_object('Panedwindow_2')
示例6: setUp
def setUp(self):
support.root_deiconify()
xmldata = 'test_menu.ui'
self.builder = builder = pygubu.Builder()
filepath = os.path.dirname(os.path.realpath(__file__))
builder.add_resource_path(filepath)
builder.add_from_file(xmldata)
self.widget = builder.get_object('mainmenu')
示例7: setUp
def setUp(self):
support.root_deiconify()
xmldata = """<?xml version="1.0" ?>
<interface>
<object class="ttk.Frame" id="mainwindow">
<property name="height">250</property>
<property name="padding">10</property>
<property name="width">250</property>
<property name="class_">MyCustomFrame</property>
<property name="relief">sunken</property>
<property name="style">MyFrameStyle.TFrame</property>
<property name="takefocus">1</property>
<property name="cursor">cross</property>
<bind add="" handler="on_button_click" sequence="<Button-1>"/>
<bind add="True" handler="on_button_click2" sequence="<Button-1>"/>
<layout>
<property name="row">0</property>
<property name="column">0</property>
<property name="sticky">nesw</property>
<property name="pady">10</property>
<property name="padx">5</property>
<property name="propagate">False</property>
<property name="ipady">4</property>
<property name="ipadx">2</property>
<property name="rowspan">1</property>
<property name="columnspan">2</property>
</layout>
<child>
<object class="ttk.Label" id="label">
<property name="text">label</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">1</property>
</layout>
</object>
</child>
</object>
</interface>
"""
self.builder = builder = pygubu.Builder()
builder.add_from_string(xmldata)
self.widget = builder.get_object('mainwindow')
示例8: setUp
def setUp(self):
support.root_deiconify()
xmldata = """<?xml version="1.0" ?>
<interface>
<object class="ttk.Frame" id="mainwindow">
<property name="height">250</property>
<property name="width">250</property>
<layout>
<property name="column">0</property>
<property name="sticky">nsew</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
<child>
<object class="ttk.Entry" id="entry">
<property name="justify">center</property>
<property name="style">MyEntryStyle.TEntry</property>
<property name="textvariable">entry_var</property>
<property name="validate">key</property>
<property name="validatecommand">entry_validate</property>
<property name="text">Hello</property>
<property name="validatecommand_args">%d %P</property>
<property name="invalidcommand">entry_invalid</property>
<property name="invalidcommand_args">%P</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
</object>
</child>
</object>
</interface>
"""
self.builder = builder = pygubu.Builder()
builder.add_from_string(xmldata)
self.widget = builder.get_object('entry')
self.is_style_setup = False
if self.is_style_setup:
self.is_style_setup = True
s = ttk.Style()
s.configure('MyEntryStyle.TEntry', color='Blue')
示例9: setUp
def setUp(self):
support.root_deiconify()
xmldata = """<?xml version="1.0" ?>
<interface>
<object class="ttk.Frame" id="mainwindow">
<property name="height">250</property>
<property name="width">250</property>
<layout>
<property name="column">0</property>
<property name="sticky">nsew</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
<child>
<object class="ttk.Button" id="testbutton">
<property name="class_">CustomButton</property>
<property name="command">on_button_click</property>
<property name="compound">right</property>
<property name="style">CustomButton.TButton</property>
<property name="text">Button Label</property>
<property name="textvariable">button_var</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
</object>
</child>
</object>
</interface>
"""
self.builder = builder = pygubu.Builder()
builder.add_from_string(xmldata)
self.widget = builder.get_object('testbutton')
self.is_style_setup = False
if self.is_style_setup:
self.is_style_setup = True
s = ttk.Style()
s.configure('CustomButton.TButton', color='Blue')
示例10: setUp
def setUp(self):
support.root_deiconify()
xmldata = """<?xml version="1.0" ?>
<interface>
<object class="ttk.Frame" id="mainwindow">
<property name="height">250</property>
<property name="width">250</property>
<layout>
<property name="column">0</property>
<property name="sticky">nsew</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
<child>
<object class="ttk.Label" id="label">
<property name="anchor">e</property>
<property name="background">#94f900</property>
<property name="borderwidth">2</property>
<property name="compound">right</property>
<property name="foreground">#690400</property>
<property name="padding">2</property>
<property name="relief">ridge</property>
<property name="text">-- A Label --</property>
<property name="textvariable">label_var</property>
<property name="width">20</property>
<property name="justify">right</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
</object>
</child>
</object>
</interface>
"""
self.builder = builder = pygubu.Builder()
builder.add_from_string(xmldata)
self.widget = builder.get_object('label')
示例11: setUp
def setUp(self):
support.root_deiconify()
示例12: setUp
def setUp(self):
support.root_deiconify()
xmldata = """<?xml version="1.0" ?>
<interface>
<object class="ttk.Frame" id="mainwindow">
<property name="height">250</property>
<property name="width">250</property>
<layout>
<property name="column">0</property>
<property name="sticky">nesw</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
<child>
<object class="ttk.Entry" id="string_entry">
<property name="textvariable">string:strvar</property>
<property name="validate">none</property>
<property name="text">string</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="ttk.Entry" id="int_entry">
<property name="textvariable">int:intvar</property>
<property name="validate">none</property>
<property name="text">22</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">1</property>
</layout>
</object>
</child>
<child>
<object class="ttk.Entry" id="double_entry">
<property name="textvariable">double:doublevar</property>
<property name="validate">none</property>
<property name="text">22.22</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">2</property>
</layout>
</object>
</child>
<child>
<object class="ttk.Entry" id="boolean_entry">
<property name="textvariable">boolean:booleanvar</property>
<property name="validate">none</property>
<property name="text">False</property>
<layout>
<property name="column">0</property>
<property name="propagate">True</property>
<property name="row">3</property>
</layout>
</object>
</child>
</object>
</interface>
"""
self.builder = builder = pygubu.Builder()
builder.add_from_string(xmldata)
self.widget = builder.get_object('mainwindow')
示例13: setUp
def setUp(self):
support.root_deiconify()
xmldata = """<?xml version="1.0" ?>
<interface>
<object class="ttk.Frame" id="mainwindow">
<property name="height">250</property>
<property name="width">250</property>
<layout>
<property name="sticky">nesw</property>
<property name="row">0</property>
<property name="column">0</property>
<property name="propagate">True</property>
</layout>
<child>
<object class="ttk.Treeview" id="treeview">
<property name="selectmode">browse</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="propagate">True</property>
</layout>
<child>
<object class="ttk.Treeview.Column" id="treecolumn">
<property name="tree_column">True</property>
<property name="visible">True</property>
<property name="text">Tree</property>
<property name="command">on_treecolumn_click</property>
<property name="heading_anchor">w</property>
<property name="column_anchor">w</property>
<property name="minwidth">200</property>
<property name="stretch">True</property>
<property name="width">200</property>
</object>
</child>
<child>
<object class="ttk.Treeview.Column" id="column1">
<property name="tree_column">False</property>
<property name="visible">True</property>
<property name="text">Column 1</property>
<property name="heading_anchor">center</property>
<property name="column_anchor">w</property>
<property name="minwidth">200</property>
<property name="stretch">False</property>
<property name="width">200</property>
</object>
</child>
<child>
<object class="ttk.Treeview.Column" id="hidden_column">
<property name="tree_column">False</property>
<property name="visible">False</property>
<property name="text">hidden</property>
<property name="heading_anchor">w</property>
<property name="column_anchor">w</property>
<property name="minwidth">20</property>
<property name="stretch">True</property>
<property name="width">200</property>
</object>
</child>
</object>
</child>
</object>
</interface>
"""
self.builder = builder = pygubu.Builder()
builder.add_from_string(xmldata)
self.widget = builder.get_object('treeview')
self.widget.wait_visibility()
示例14: setUp
def setUp(self):
support.root_deiconify()
xmldata = 'test_menu.ui'
self.builder = builder = pygubu.Builder()
builder.add_from_file(xmldata)
self.widget = builder.get_object('mainmenu')