示例#1
0
 def testTkinter(self):
     root = Tkinter.Tk()
     root.resizable(width=Tkinter.FALSE, height=Tkinter.FALSE)
     root.title("pywikibot GUI")
     page = pywikibot.Page(pywikibot.Site(), u'Main Page')
     content = page.get()
     myapp = EditBoxWindow(root)
     myapp.bind("<Control-d>", myapp.debug)
     v = myapp.edit(content, highlight=page.title())
     assert v is None
示例#2
0
 def testTkinter(self):
     root = Tkinter.Tk()
     root.resizable(width=Tkinter.FALSE, height=Tkinter.FALSE)
     root.title("pywikibot GUI")
     page = pywikibot.Page(pywikibot.Site(), u'Main Page')
     content = page.get()
     myapp = EditBoxWindow(root)
     myapp.bind("<Control-d>", myapp.debug)
     v = myapp.edit(content, highlight=page.title())
     assert v is None
示例#3
0
 def testTkinter(self):
     """Test Tkinter window."""
     root = tkinter.Tk()
     root.resizable(width=tkinter.FALSE, height=tkinter.FALSE)
     root.title('pywikibot GUI')
     page = pywikibot.Page(pywikibot.Site(), 'Main Page')
     content = page.get()
     myapp = EditBoxWindow(root)
     myapp.bind('<Control-d>', myapp.debug)
     v = myapp.edit(content, highlight=page.title())
     self.assertIsNone(v)