(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()