Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# -*- coding: utf-8 -*- 

2""" 

3@file 

4@brief Module *tkinterquickhelper*. 

5Helpers for :epkg:`*py:tkinter`. 

6""" 

7 

8__version__ = "1.6.118" 

9__author__ = "Xavier Dupré" 

10__github__ = "https://github.com/sdpython/tkinterquickhelper" 

11__url__ = "http://www.xavierdupre.fr/app/tkinterquickhelper/helpsphinx/index.html" 

12__license__ = "MIT License" 

13__blog__ = """ 

14<?xml version="1.0" encoding="UTF-8"?> 

15<opml version="1.0"> 

16 <head> 

17 <title>blog</title> 

18 </head> 

19 <body> 

20 <outline text="tkinterquickhelper" 

21 title="tkinterquickhelper" 

22 type="rss" 

23 xmlUrl="http://www.xavierdupre.fr/app/tkinterquickhelper/helpsphinx/_downloads/rss.xml" 

24 htmlUrl="http://www.xavierdupre.fr/app/tkinterquickhelper/helpsphinx/blog/main_0000.html" /> 

25 </body> 

26</opml> 

27""" 

28 

29 

30def check(): 

31 """ 

32 Checks the library is working. 

33 It raises an exception if it does not. 

34 

35 @return boolean 

36 """ 

37 from .funcwin import check_icon 

38 from pyquickhelper.loghelper import check_log 

39 check_icon() 

40 check_log() 

41 return True 

42 

43 

44def _setup_hook(add_print=False, unit_test=False): 

45 """ 

46 If this function is added to the module, 

47 the help automation and unit tests call it first before 

48 anything goes on as an initialization step. 

49 It should be run in a separate process. 

50 

51 @param add_print print *Success: _setup_hook* 

52 @param unit_test used only for unit testing purpose 

53 """ 

54 # we can check many things, needed module 

55 # any others things before unit tests are started 

56 if add_print: 

57 print("Success: _setup_hook")