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?
#3
(Jun-14-2018, 06:41 AM)buran Wrote: where this code comes from?

It was generated from PAGE (tkinter gui code generator).

Full generated code (it's a blank window):

#! /usr/bin/env python
#  -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 4.14
# In conjunction with Tcl version 8.6
#    Jun 14, 2018 11:56:35 AM

import sys

try:
    from Tkinter import *
except ImportError:
    from tkinter import *

try:
    import ttk
    py3 = False
except ImportError:
    import tkinter.ttk as ttk
    py3 = True

#import _support

def vp_start_gui():
    '''Starting point when module is the main routine.'''
    global val, w, root
    root = Tk()
    top = New_Toplevel (root)
    #_support.init(root, top)
    root.mainloop()

w = None
def create_New_Toplevel(root, *args, **kwargs):
    '''Starting point when module is imported by another program.'''
    global w, w_win, rt
    rt = root
    w = Toplevel (root)
    top = New_Toplevel (w)
    _support.init(w, top, *args, **kwargs)
    return (w, top)

def destroy_New_Toplevel():
    global w
    w.destroy()
    w = None


class New_Toplevel:
    def __init__(self, top=None):
        '''This class configures and populates the toplevel window.
           top is the toplevel containing window.'''
        _bgcolor = '#d9d9d9'  # X11 color: 'gray85'
        _fgcolor = '#000000'  # X11 color: 'black'
        _compcolor = '#d9d9d9' # X11 color: 'gray85'
        _ana1color = '#d9d9d9' # X11 color: 'gray85' 
        _ana2color = '#d9d9d9' # X11 color: 'gray85' 

        top.geometry("600x450+439+125")
        top.title("New Toplevel")
        top.configure(background="#d9d9d9")








if __name__ == '__main__':
    vp_start_gui()
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