• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python support.root_deiconify函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:31,代码来源:test_scrollbarhelper.py


示例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')
开发者ID:grumpycoders,项目名称:Igor,代码行数:7,代码来源:test_widgets.py


示例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')
开发者ID:Diesel9012,项目名称:GameLearningAI,代码行数:7,代码来源:test_pathchooserinput.py


示例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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:7,代码来源:test_text.py


示例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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:8,代码来源:test_panedwindow.py


示例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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:8,代码来源:test_menu.py


示例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="&lt;Button-1&gt;"/>
        <bind add="True" handler="on_button_click2" sequence="&lt;Button-1&gt;"/>
        <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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:43,代码来源:test_frame.py


示例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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:43,代码来源:test_entry.py


示例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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:40,代码来源:test_button.py


示例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')
开发者ID:DaZhu,项目名称:pygubu,代码行数:39,代码来源:test_label.py


示例11: setUp

 def setUp(self):
     support.root_deiconify()
开发者ID:aevitas,项目名称:wotsdk,代码行数:2,代码来源:test_ttktest_extensions.py


示例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')
开发者ID:SMan23,项目名称:pygubu,代码行数:67,代码来源:test_variables.py


示例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()
开发者ID:DaZhu,项目名称:pygubu,代码行数:67,代码来源:test_treeview.py


示例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')
开发者ID:SMan23,项目名称:pygubu,代码行数:6,代码来源:test_menu.py



注:本文中的support.root_deiconify函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python support.root_withdraw函数代码示例发布时间:2022-05-27
下一篇:
Python support.read_test_file函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap