Did I find the right examples for you? yes no

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

src/b/e/BeginningPythonExercises-HEAD/chapter13/py_chapter13/src/textfield_example.py   BeginningPythonExercises(Download)
def result():
    print( " this sum of 2+2 is : ", 2+2)
    resultVar.set( str(int(resultVar.get())+10) )
    textVar.set("does it work")
 

src/s/t/static-python-HEAD/Lib/tkinter/test/test_tkinter/test_variables.py   static-python(Download)
    def test_default(self):
        v = StringVar(self.root)
        self.assertEqual("", v.get())
 
    def test_get(self):
        v = StringVar(self.root, "abc", "name")
        self.assertEqual("abc", v.get())
        self.root.globalsetvar("name", "value")
        self.assertEqual("value", v.get())

src/c/p/cpython-HEAD/Lib/tkinter/test/test_tkinter/test_variables.py   cpython(Download)
    def test_default(self):
        v = StringVar(self.root)
        self.assertEqual("", v.get())
 
    def test_get(self):
        v = StringVar(self.root, "abc", "name")
        self.assertEqual("abc", v.get())
        self.root.globalsetvar("name", "value")
        self.assertEqual("value", v.get())
    def test_get_null(self):
        v = StringVar(self.root, "abc\x00def", "name")
        self.assertEqual("abc\x00def", v.get())
        self.root.globalsetvar("name", "val\x00ue")
        self.assertEqual("val\x00ue", v.get())

src/i/r/ironpython3-HEAD/Src/StdLib/Lib/tkinter/test/test_tkinter/test_variables.py   ironpython3(Download)
    def test_default(self):
        v = StringVar(self.root)
        self.assertEqual("", v.get())
 
    def test_get(self):
        v = StringVar(self.root, "abc", "name")
        self.assertEqual("abc", v.get())
        self.root.globalsetvar("name", "value")
        self.assertEqual("value", v.get())
    def test_get_null(self):
        v = StringVar(self.root, "abc\x00def", "name")
        self.assertEqual("abc\x00def", v.get())
        self.root.globalsetvar("name", "val\x00ue")
        self.assertEqual("val\x00ue", v.get())