-
Notifications
You must be signed in to change notification settings - Fork 0
/
GenAboutBox_support.py.bak1
83 lines (65 loc) · 1.94 KB
/
GenAboutBox_support.py.bak1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Support module generated by PAGE version 4.10.1a1
# In conjunction with Tcl version 8.6
# Feb 03, 2018 01:02:54 PM
# Oct 20, 2020 01:04:01 PM CEST platform: Windows NT
# Oct 20, 2020 01:06:56 PM CEST platform: Windows NT
#======================================================
# GenAboutBox_support.py
#------------------------------------------------------
# Created for the Page Tutorial Project
# Written by G.D. Walters
# Copyright (c) 2018 by G.D. Walters
# This source code is released under the MIT License
# (See MIT_License.txt)
#======================================================
import sys
try:
from Tkinter import *
except ImportError:
from tkinter import *
try:
import ttk
py3 = 0
except ImportError:
import tkinter.ttk as ttk
py3 = 1
import webbrowser
def callback(url):
webbrowser.open_new(url)
def OnBtnDismiss(p1):
print('GenAboutBox_support.OnBtnDismiss')
sys.stdout.flush()
root.withdraw()
def LoadForm():
global temp
copyright_symbol = u"\u00A9"
w.lblProgName.configure(text = temp[0])
w.lblAuthor.configure(text = "Written by {0}".format(temp[1]))
w.lblVersion.configure(text = "Version {0}".format(temp[2]))
w.lblCopyright.configure(text = temp[3])
w.Scrolledtext1.insert(END,temp[4])
def init(top, gui, *args, **kwargs):
global w, top_level, root, temp
w = gui
top_level = top
root = top
temp = list(args)[0]
LoadForm()
def lblHomepage_LeftClick(p1):
print('GenAboutBox_support.lblHomepage_LeftClick')
sys.stdout.flush()
callback(p1)
def lblHomepage_LeftClick(p1):
print('GenAboutBox_support.lblHomepage_LeftClick')
sys.stdout.flush()
def destroy_window():
# Function which closes the window.
global top_level
top_level.destroy()
top_level = None
if __name__ == '__main__':
import GenAboutBox
GenAboutBox.vp_start_gui()