Files
ecos/Windows/pecos_support.py

43 lines
821 B
Python

#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Support module generated by PAGE version 5.4
# in conjunction with Tcl version 8.6
# Sep 30, 2020 01:33:24 PM CDT platform: Linux
import sys
from PIL import Image, ImageTk
import sqlite3
from datetime import datetime
from datetime import date
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
py3 = False
except ImportError:
import tkinter.ttk as ttk
py3 = True
# --- DEFINE FUNCTIONS ---
def init(top, gui, *args, **kwargs):
global w, top_level, root
w = gui
top_level = top
root = top
def destroy_window():
# Function which closes the window.
global top_level
top_level.destroy()
top_level = None
if __name__ == '__main__':
import pecos
pecos.vp_start_gui()