コード例 #1
0
ファイル: ryViewer2.py プロジェクト: renyuanL/tcTranslate2016
            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
ファイル: ryViewer2.py プロジェクト: renyuanL/tcTranslate
            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
ファイル: __main__.py プロジェクト: GoMADAO/Lessa-PLT
def showDemoHelp():
    view_text(demo.root, "Help on turtledemo", __doc__)
コード例 #5
0
ファイル: __main__.py プロジェクト: GoMADAO/Lessa-PLT
def showAboutTurtle():
    view_text(demo.root, "About the turtle module.", turtle.__doc__)
コード例 #6
0
ファイル: __main__.py プロジェクト: GoMADAO/Lessa-PLT
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)
コード例 #8
0
 def display_printer_text(self, title, printer):
     printer._Printer__setup()
     text = '\n'.join(printer._Printer__lines)
     textView.view_text(self, title, text)
コード例 #9
0
ファイル: test_textview.py プロジェクト: cimarieta/usp
 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
ファイル: test_textview.py プロジェクト: whqkdhfh13/sswp
 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
ファイル: __main__.py プロジェクト: raonyguimaraes/cpython
 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__)