Python Forum
What is the module _support for?
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the module _support for?
#7
(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 code
Quote: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 like fnew_support.init(root, top) also unknown_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?
Reply


Messages In This Thread
What is the module _support for? - by Nwb - Jun-14-2018, 06:40 AM
RE: What is the module _support for? - by buran - Jun-14-2018, 06:41 AM
RE: What is the module _support for? - by Nwb - Jun-14-2018, 06:47 AM
RE: What is the module _support for? - by buran - Jun-14-2018, 07:20 AM
RE: What is the module _support for? - by Nwb - Jun-14-2018, 07:28 AM
RE: What is the module _support for? - by buran - Jun-14-2018, 07:39 AM
RE: What is the module _support for? - by Nwb - Jun-14-2018, 08:00 AM
RE: What is the module _support for? - by buran - Jun-14-2018, 08:02 AM
RE: What is the module _support for? - by buran - Jun-14-2018, 08:20 AM
RE: What is the module _support for? - by Nwb - Jun-14-2018, 10:12 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020