예제 #1
0
 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')
예제 #2
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_command_id_arg.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('mainwindow')
     self.menu = builder.get_object('menu1')
예제 #3
0
 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')
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_ttkcombobox.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.mainwindow = builder.get_object('mainwindow')
     self.widget = builder.get_object('combobox1')
예제 #5
0
    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')
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_calendarframe.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.mainwindow = builder.get_object('mainwindow')
     self.widget = builder.get_object('calendar')
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_canvas.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('mainframe')
     self.canvas = builder.get_object('Canvas_1')
 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')
예제 #9
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_idtocommand.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('mainwindow')
     self.button = builder.get_object('button1')
예제 #10
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_dialog.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('mydialog')
     self.dialog = self.widget
예제 #11
0
 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')
예제 #12
0
파일: test_text.py 프로젝트: DaZhu/pygubu
 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')
예제 #13
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_ttkcombobox.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.mainwindow = builder.get_object('mainwindow')
     self.widget = builder.get_object('combobox1')
    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')
예제 #15
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_text_issue58.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('mainframe')
     self.text = builder.get_object('Text_1')
예제 #16
0
 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')
 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')
예제 #18
0
 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')
예제 #19
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_toplevelmenuhelper.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('toplevel')
     self.menuhelper = builder.get_object('topmenuhelper')
     self.menu = builder.get_object('topmenu')
예제 #20
0
파일: test_menu.py 프로젝트: DaZhu/pygubu
 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')
예제 #21
0
파일: test_frame.py 프로젝트: DaZhu/pygubu
    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')
예제 #22
0
    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')
    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')
예제 #24
0
파일: test_entry.py 프로젝트: DaZhu/pygubu
    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')
예제 #25
0
    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')
예제 #26
0
파일: test_button.py 프로젝트: DaZhu/pygubu
    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')
    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')
예제 #28
0
파일: test_label.py 프로젝트: DaZhu/pygubu
    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')
예제 #29
0
    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()
예제 #30
0
 def setUp(self):
     support.root_deiconify()
     self.paned = ttk.Panedwindow()
예제 #31
0
 def setUp(self):
     support.root_deiconify()
     self.scale = ttk.Scale()
     self.scale.pack()
     self.scale.update()
예제 #32
0
 def setUp(self):
     support.root_deiconify()
     self.widget = ttk.Button(width=0, text="Text")
     self.widget.pack()
     self.widget.wait_visibility()
예제 #33
0
 def setUp(self):
     support.root_deiconify()
     self.entry = ttk.Entry()
예제 #34
0
파일: test_menu.py 프로젝트: SMan23/pygubu
 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')
예제 #35
0
 def setUp(self):
     support.root_deiconify()
     self.combo = ttk.Combobox()
예제 #36
0
 def setUp(self):
     support.root_deiconify()
예제 #37
0
 def setUp(self):
     support.root_deiconify()
     self.textvar = Tkinter.StringVar()
예제 #38
0
 def setUp(self):
     support.root_deiconify()
     self.tv = ttk.Treeview(padding=0)
예제 #39
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_labelframe.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('Labelframe')
예제 #40
0
 def setUp(self):
     support.root_deiconify()
     self.scale = ttk.Scale()
     self.scale.pack()
     self.scale.update()
예제 #41
0
 def setUp(self):
     support.root_deiconify()
     self.paned = ttk.Panedwindow()
예제 #42
0
 def setUp(self):
     support.root_deiconify()
     self.entry = ttk.Entry()
예제 #43
0
 def setUp(self):
     support.root_deiconify()
     self.widget = ttk.Button(width=0, text="Text")
     self.widget.pack()
     self.widget.wait_visibility()
예제 #44
0
 def setUp(self):
     support.root_deiconify()
     self.combo = ttk.Combobox()
예제 #45
0
    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')
예제 #46
0
 def setUp(self):
     support.root_deiconify()
     self.tv = ttk.Treeview(padding=0)
예제 #47
0
 def setUp(self):
     support.root_deiconify()
     xmldata = xmldata = 'test_entry_commands.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('entry')
예제 #48
0
    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')
예제 #49
0
 def setUp(self):
     support.root_deiconify()
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_notebook.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('Notebook')
 def setUp(self):
     support.root_deiconify()
     xmldata = "test_variables.ui"
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('mainwindow')
예제 #52
0
 def setUp(self):
     support.root_deiconify()
     xmldata = "test_variables.ui"
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object("mainwindow")
예제 #53
0
 def setUp(self):
     support.root_deiconify()
     self.textvar = Tkinter.StringVar()
예제 #54
0
 def setUp(self):
     support.root_deiconify()
     xmldata = 'test_scrolledframe.ui'
     self.builder = builder = pygubu.Builder()
     builder.add_from_file(xmldata)
     self.widget = builder.get_object('scrolledframe')