예제 #1
0
            def show(help_label=help_label, help_file=help_file):

                if 'https:' in help_file:
                    try:
                        import webbrowser
                        webbrowser.open_new(help_file) #'https://docs.python.org/3.4/library/turtle.html'
                    except:
                        help_file += ' .. 但網路可能不通。'
                view_text(我.root, help_label, help_file)
예제 #2
0
            def show(help_label=help_label, help_file=help_file):

                if 'https:' in help_file:
                    try:
                        import webbrowser
                        webbrowser.open_new(
                            help_file
                        )  #'https://docs.python.org/3.4/library/turtle.html'
                    except:
                        help_file += ' .. 但網路可能不通。'
                view_text(我.root, help_label, help_file)
예제 #3
0
파일: aboutDialog.py 프로젝트: Mshrimp/up
 def display_printer_text(self, title, printer):
     printer._Printer__setup()
     text = '\n'.join(printer._Printer__lines)
     textView.view_text(self, title, text)
예제 #4
0
def showDemoHelp():
    view_text(demo.root, "Help on turtledemo", __doc__)
예제 #5
0
def showAboutTurtle():
    view_text(demo.root, "About the turtle module.", turtle.__doc__)
예제 #6
0
def showAboutDemo():
    view_text(demo.root, "About turtledemo", about_turtledemo)
예제 #7
0
 def test_view_text(self):
     # If modal True, tkinter will error with 'can't invoke "event" command'
     view = tv.view_text(root, 'Title', 'test text', modal=False)
     self.assertIsInstance(view, tv.TextViewer)
 def display_printer_text(self, title, printer):
     printer._Printer__setup()
     text = '\n'.join(printer._Printer__lines)
     textView.view_text(self, title, text)
예제 #9
0
 def test_view_text(self):
     # If modal True, tkinter will error with 'can't invoke "event" command'
     view = tv.view_text(self.root, "Title", "test text", modal=False)
     self.assertIsInstance(view, tv.TextViewer)
예제 #10
0
 def test_view_text(self):
     # If modal True, get tk error 'can't invoke "event" command'.
     view = tv.view_text(root, 'Title', 'test text', modal=False)
     self.assertIsInstance(view, tv.TextViewer)
     view.Ok()
예제 #11
0
 def test_view_text(self):
     # If modal True, get tkinter error 'can't invoke "event" command'.
     view = tv.view_text(self.root, 'Title', 'test text', modal=False)
     self.assertIsInstance(view, tv.TextViewer)
     view.Ok()
예제 #12
0
 def show(help_label=help_label, help_file=help_file):
     view_text(self.root, help_label, help_file)
예제 #13
0
 def show(help_label=help_label, help_file=help_file):
     view_text(self.root, help_label, help_file)
예제 #14
0
def showAboutTurtle():
    view_text(demo.root, "About the turtle module.", turtle.__doc__)
예제 #15
0
def showAboutDemo():
    view_text(demo.root, "About turtledemo", about_turtledemo)
예제 #16
0
def showDemoHelp():
    view_text(demo.root, "Help on turtledemo", __doc__)