Initial commit for unified repo.
This commit is contained in:
43
Linux/pecos_support.py
Normal file
43
Linux/pecos_support.py
Normal file
@ -0,0 +1,43 @@
|
||||
#! /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()
|
Reference in New Issue
Block a user