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')
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')
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')
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_idtocommand.ui' self.builder = builder = pygubu.Builder() builder.add_from_file(xmldata) self.widget = builder.get_object('mainwindow') self.button = builder.get_object('button1')
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
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')
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')
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')
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')
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')
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="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')
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()
def setUp(self): support.root_deiconify() self.paned = ttk.Panedwindow()
def setUp(self): support.root_deiconify() self.scale = ttk.Scale() self.scale.pack() self.scale.update()
def setUp(self): support.root_deiconify() self.widget = ttk.Button(width=0, text="Text") self.widget.pack() self.widget.wait_visibility()
def setUp(self): support.root_deiconify() self.entry = ttk.Entry()
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')
def setUp(self): support.root_deiconify() self.combo = ttk.Combobox()
def setUp(self): support.root_deiconify()
def setUp(self): support.root_deiconify() self.textvar = Tkinter.StringVar()
def setUp(self): support.root_deiconify() self.tv = ttk.Treeview(padding=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')
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')
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')
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')
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")
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')