Did I find the right examples for you? yes no

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/i/r/ironpython3-HEAD/Src/StdLib/Lib/tkinter/test/test_ttk/test_extensions.py   ironpython3(Download)
    def test_widget_destroy(self):
        var = tkinter.StringVar()
        optmenu = ttk.OptionMenu(None, var)
        name = var._name
        optmenu.update_idletasks()
    def test_initialization(self):
        self.assertRaises(tkinter.TclError,
            ttk.OptionMenu, None, self.textvar, invalid='thing')
 
        optmenu = ttk.OptionMenu(None, self.textvar, 'b', 'a', 'b')
    def test_menu(self):
        items = ('a', 'b', 'c')
        default = 'a'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        found_default = False
        # default shouldn't be in menu if it is not part of values
        default = 'd'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        curr = None
        i = 0
            self.assertEqual(item, items[1])
            success.append(True)
        optmenu = ttk.OptionMenu(None, self.textvar, 'a', command=cb_test,
            *items)
        optmenu['menu'].invoke(1)

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/tkinter/test/test_ttk/test_extensions.py   TrustRouter(Download)
    def test_widget_destroy(self):
        var = tkinter.StringVar()
        optmenu = ttk.OptionMenu(None, var)
        name = var._name
        optmenu.update_idletasks()
    def test_initialization(self):
        self.assertRaises(tkinter.TclError,
            ttk.OptionMenu, None, self.textvar, invalid='thing')
 
        optmenu = ttk.OptionMenu(None, self.textvar, 'b', 'a', 'b')
    def test_menu(self):
        items = ('a', 'b', 'c')
        default = 'a'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        found_default = False
        # default shouldn't be in menu if it is not part of values
        default = 'd'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        curr = None
        i = 0
            self.assertEqual(item, items[1])
            success.append(True)
        optmenu = ttk.OptionMenu(None, self.textvar, 'a', command=cb_test,
            *items)
        optmenu['menu'].invoke(1)

src/c/p/cpython-HEAD/Lib/tkinter/test/test_ttk/test_extensions.py   cpython(Download)
    def test_widget_destroy(self):
        var = tkinter.StringVar()
        optmenu = ttk.OptionMenu(None, var)
        name = var._name
        optmenu.update_idletasks()
    def test_initialization(self):
        self.assertRaises(tkinter.TclError,
            ttk.OptionMenu, None, self.textvar, invalid='thing')
 
        optmenu = ttk.OptionMenu(None, self.textvar, 'b', 'a', 'b')
    def test_menu(self):
        items = ('a', 'b', 'c')
        default = 'a'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        found_default = False
        # default shouldn't be in menu if it is not part of values
        default = 'd'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        curr = None
        i = 0
            self.assertEqual(item, items[1])
            success.append(True)
        optmenu = ttk.OptionMenu(None, self.textvar, 'a', command=cb_test,
            *items)
        optmenu['menu'].invoke(1)

src/s/t/static-python-HEAD/Lib/tkinter/test/test_ttk/test_extensions.py   static-python(Download)
    def test_widget_destroy(self):
        var = tkinter.StringVar()
        optmenu = ttk.OptionMenu(None, var)
        name = var._name
        optmenu.update_idletasks()
    def test_initialization(self):
        self.assertRaises(tkinter.TclError,
            ttk.OptionMenu, None, self.textvar, invalid='thing')
 
        optmenu = ttk.OptionMenu(None, self.textvar, 'b', 'a', 'b')
    def test_menu(self):
        items = ('a', 'b', 'c')
        default = 'a'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        found_default = False
        # default shouldn't be in menu if it is not part of values
        default = 'd'
        optmenu = ttk.OptionMenu(None, self.textvar, default, *items)
        curr = None
        i = 0
            self.assertEqual(item, items[1])
            success.append(True)
        optmenu = ttk.OptionMenu(None, self.textvar, 'a', command=cb_test,
            *items)
        optmenu['menu'].invoke(1)