-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathODD_SEM2017.py
153 lines (126 loc) · 5.44 KB
/
ODD_SEM2017.py
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Sep 04, 2018 12:54:49 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 ODD_SEM_support2017
def vp_start_gui():
'''Starting point when module is the main routine.'''
global val, w, root
root = Tk()
top = SELECT_SEMESTER (root)
ODD_SEM_support2017.init(root, top)
root.mainloop()
w = None
def create_SELECT_SEMESTER(root, *args, **kwargs):
'''Starting point when module is imported by another program.'''
global w, w_win, rt
rt = root
w = Toplevel (root)
top = SELECT_SEMESTER (w)
ODD_SEM_support2017.init(w, top, *args, **kwargs)
return (w, top)
def destroy_SELECT_SEMESTER():
global w
w.destroy()
w = None
class SELECT_SEMESTER:
def back(self):
ODD_SEM_support2017.destroy_window()
import SEM_PAGE2017
SEM_PAGE2017.vp_start_gui()
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("565x423+447+133")
top.title("SELECT SEMESTER")
top.configure(borderwidth="20")
top.configure(relief="groove")
top.configure(background="#d9d9d9")
top.configure(highlightbackground="#000000")
top.configure(takefocus="023")
top.configure(width="10")
self.Label1 = Label(top)
self.Label1.place(relx=0.44, rely=0.12, height=21, width=61)
self.Label1.configure(background="#d9d9d9")
self.Label1.configure(disabledforeground="#a3a3a3")
self.Label1.configure(foreground="#000000")
self.Label1.configure(text='''SEMESTER''')
self.Button1 = Button(top)
self.Button1.place(relx=0.25, rely=0.26, height=44, width=77)
self.Button1.configure(activebackground="#d9d9d9")
self.Button1.configure(activeforeground="#000000")
self.Button1.configure(background="#d9d9d9")
self.Button1.configure(disabledforeground="#a3a3a3")
self.Button1.configure(foreground="#000000")
self.Button1.configure(highlightbackground="#d9d9d9")
self.Button1.configure(highlightcolor="black")
self.Button1.configure(pady="0")
self.Button1.configure(text='''1ST SEM''')
self.Button1.configure(width=77)
self.Button2 = Button(top)
self.Button2.place(relx=0.62, rely=0.26, height=44, width=77)
self.Button2.configure(activebackground="#d9d9d9")
self.Button2.configure(activeforeground="#000000")
self.Button2.configure(background="#d9d9d9")
self.Button2.configure(disabledforeground="#a3a3a3")
self.Button2.configure(foreground="#000000")
self.Button2.configure(highlightbackground="#d9d9d9")
self.Button2.configure(highlightcolor="black")
self.Button2.configure(pady="0")
self.Button2.configure(text='''3RD SEM''')
self.Button2.configure(width=77)
self.Button3 = Button(top)
self.Button3.place(relx=0.25, rely=0.52, height=44, width=77)
self.Button3.configure(activebackground="#d9d9d9")
self.Button3.configure(activeforeground="#000000")
self.Button3.configure(background="#d9d9d9")
self.Button3.configure(disabledforeground="#a3a3a3")
self.Button3.configure(foreground="#000000")
self.Button3.configure(highlightbackground="#d9d9d9")
self.Button3.configure(highlightcolor="black")
self.Button3.configure(pady="0")
self.Button3.configure(text='''5TH SEM''')
self.Button3.configure(width=77)
self.Button4 = Button(top)
self.Button4.place(relx=0.62, rely=0.52, height=44, width=77)
self.Button4.configure(activebackground="#d9d9d9")
self.Button4.configure(activeforeground="#000000")
self.Button4.configure(background="#d9d9d9")
self.Button4.configure(disabledforeground="#a3a3a3")
self.Button4.configure(foreground="#000000")
self.Button4.configure(highlightbackground="#d9d9d9")
self.Button4.configure(highlightcolor="black")
self.Button4.configure(pady="0")
self.Button4.configure(text='''7TH SEM''')
self.Button4.configure(width=77)
self.Button5 = Button(top)
self.Button5.place(relx=0.34, rely=0.73, height=44, width=187)
self.Button5.configure(activebackground="#d9d9d9")
self.Button5.configure(activeforeground="#000000")
self.Button5.configure(background="#d9d9d9")
self.Button5.configure(disabledforeground="#a3a3a3")
self.Button5.configure(foreground="#000000")
self.Button5.configure(highlightbackground="#d9d9d9")
self.Button5.configure(highlightcolor="black")
self.Button5.configure(pady="0")
self.Button5.configure(text='''BACK''')
self.Button5.configure(width=187)
self.Button5.configure(command=self.back)
if __name__ == '__main__':
vp_start_gui()