Exemple #1
0
    def test_FrameFunction(self):
        fLOG(__file__, self._testMethodName, OutputPrint=__name__ == "__main__")

        ico = get_icon()
        fLOG("icon", ico)
        assert os.path.exists(ico)

        if __name__ == "__main__":
            open_window_function(test_regular_expression)
Exemple #2
0
 def test_open_window_function(self):
     fLOG(
         __file__,
         self._testMethodName,
         OutputPrint=__name__ == "__main__")
     func = my_tst_function
     try:
         win = open_window_function(func, do_not_open=True)
     except TclError as e:
         warnings.warn("TclError" + str(e))
         return
     fLOG(type(win))
     assert isinstance(
         win,
         src.pyquickhelper.funcwin.frame_function.FrameFunction)
     win.refresh()
     win.update()
     win.run_function(0, 1)