Jun-14-2018, 08:00 AM
(Jun-14-2018, 07:39 AM)buran Wrote: As I understand it this is the module where you write your part of the code. This way you can change/regenerate how the GUI looks without changing your own codeQuote:PAGE generates two modules, The GUI module, and the Support Module. The first contains all of the Python code necessary to plop the GUI window onto the computer screen. In my vision of the PAGE word, the GUI module is not to be edited. It contains all of the required linkage to the Support module. It is generally the main module of the application.Quote:Support Module This module is home of the hand coded portion of the application. Obviously, PAGE can only prepare a framework for the application. What PAGE knows about are, (1) the linkage between the GUI module and the support module, (2) the callback functions to be located in the Support module, and (3) the Tk variables which are to be manipulated in the support module.If you look at the docs there are examples likefnew_support.init(root, top)
alsounknown_support
: [Image: console.jpg]Quote:Python Console When the user generates Python for either the GUI module or the support module as described above, a separate Python Console window appears with the generated code inside the upper text box. Thus one can see both the GUI module and the support module side by side as of version 4.6.EDIT: It look like it takes the prefix from the .py file name...
So should I remove the import _support and write tkinter_support.init(root, top) for that line?
But,
It says tkinter_support is not defined. Also I can't import tkinter_support (tkinter is file name).
What am I supposed to do?