-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnnew.py.bak1
More file actions
212 lines (186 loc) · 7.63 KB
/
Copy pathnnew.py.bak1
File metadata and controls
212 lines (186 loc) · 7.63 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 5.3
# in conjunction with Tcl version 8.6
# Jun 24, 2020 06:18:45 AM EDT platform: Linux
import sys
import os
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
import nnew_support
def vp_start_gui():
'''Starting point when module is the main routine.'''
global val, w, root
root = tk.Tk()
nnew_support.set_Tk_var()
top = Mainpage (root)
nnew_support.init(root, top)
root.mainloop()
w = None
def create_Mainpage(rt, *args, **kwargs):
'''Starting point when module is imported by another module.
Correct form of call: 'create_Mainpage(root, *args, **kwargs)' .'''
global w, w_win, root
#rt = root
root = rt
w = tk.Toplevel (root)
nnew_support.set_Tk_var()
top = Mainpage (w)
nnew_support.init(w, top, *args, **kwargs)
return (w, top)
def encoder():
os.system('python unknown_support.py')
def destroy_Mainpage():
global w
w.destroy()
w = None
class Mainpage:
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 = '#ececec' # Closest X11 color: 'gray92'
self.style = ttk.Style()
if sys.platform == "win32":
self.style.theme_use('winnative')
self.style.configure('.',background=_bgcolor)
self.style.configure('.',foreground=_fgcolor)
self.style.configure('.',font="TkDefaultFont")
self.style.map('.',background=
[('selected', _compcolor), ('active',_ana2color)])
top.geometry("947x512+216+179")
top.minsize(1, 1)
top.maxsize(1351, 738)
top.resizable(1, 1)
top.title("Password Manager")
top.configure(borderwidth="10")
top.configure(background="#d83253")
top.configure(cursor="arrow")
top.configure(highlightcolor="black")
self.menubar = tk.Menu(top,font="TkMenuFont",bg='#d83253',fg=_fgcolor)
top.configure(menu = self.menubar)
self.sub_menu = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu,
activebackground="#ececec",
activeforeground="#000000",
background="#d83253",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Show Info")
self.sub_menu1 = tk.Menu(top,tearoff=0)
self.sub_menu.add_cascade(menu=self.sub_menu1,
activebackground="#ececec",
activeforeground="#000000",
background="#d83253",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Password Show")
self.sub_menu12 = tk.Menu(top,tearoff=0)
self.sub_menu.add_cascade(menu=self.sub_menu12,
activebackground="#ececec",
activeforeground="#000000",
background="#d83253",
compound="left",
font="TkMenuFont",
foreground="#d83253",
label="More Show")
self.sub_menu123 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu123,
activebackground="#ececec",
activeforeground="#000000",
background="#d83253",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Encoder",
command=encoder)
self.sub_menu1234 = tk.Menu(top,tearoff=0)
self.menubar.add_cascade(menu=self.sub_menu1234,
activebackground="#ececec",
activeforeground="#000000",
background="#d83253",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Decoder")
self.menubar.add_separator(
background="#d9d9d9")
self.menubar.add_command(
activebackground="#ececec",
activeforeground="#000000",
background="#d83253",
compound="left",
font="TkMenuFont",
foreground="#000000",
label="Exit")
self.email = tk.Entry(top)
self.email.place(relx=0.393, rely=0.156,height=33, relwidth=0.27)
self.email.configure(background="#36d7ff")
self.email.configure(font="TkFixedFont")
self.email.configure(selectbackground="#c4c4c4")
self.website = tk.Entry(top)
self.website.place(relx=0.393, rely=0.268,height=33, relwidth=0.27)
self.website.configure(background="#12d7ff")
self.website.configure(font="TkFixedFont")
self.website.configure(selectbackground="#c4c4c4")
self.password = tk.Entry(top)
self.password.place(relx=0.393, rely=0.379,height=33, relwidth=0.27)
self.password.configure(background="#03e6ff")
self.password.configure(font="TkFixedFont")
self.password.configure(selectbackground="#c4c4c4")
self.Label1 = tk.Label(top)
self.Label1.place(relx=0.127, rely=0.156, height=36, width=241)
self.Label1.configure(activebackground="#f9f9f9")
self.Label1.configure(background="#d83253")
self.Label1.configure(highlightcolor="#efeded")
self.Label1.configure(takefocus="1")
self.Label1.configure(text='''Enter Your Email Or Name''')
self.Label1_3 = tk.Label(top)
self.Label1_3.place(relx=0.122, rely=0.268, height=36, width=241)
self.Label1_3.configure(activebackground="#f9f9f9")
self.Label1_3.configure(background="#d83253")
self.Label1_3.configure(text='''Enter Your Website''')
self.Label1_4 = tk.Label(top)
self.Label1_4.place(relx=0.12, rely=0.369, height=36, width=241)
self.Label1_4.configure(activebackground="#f9f9f9")
self.Label1_4.configure(background="#d83253")
self.Label1_4.configure(text='''Enter Your Password''')
self.TLabel1 = ttk.Label(top)
self.TLabel1.place(relx=0.0, rely=0.912, height=67, width=376)
self.TLabel1.configure(background="#d80606")
self.TLabel1.configure(foreground="#000000")
self.TLabel1.configure(font="TkDefaultFont")
self.TLabel1.configure(relief="flat")
self.TLabel1.configure(anchor='w')
self.TLabel1.configure(justify='left')
self.TLabel1.configure(text='''This Software Made By FahadAkash''')
self.TLabel1.configure(cursor="spider")
self.MainButton = tk.Button(top)
self.MainButton.place(relx=0.455, rely=0.574, height=51, width=131)
self.MainButton.configure(activebackground="#f9f9f9")
self.MainButton.configure(background="#d8b91c")
self.MainButton.configure(text='''Click Here''')
self.termcheck = tk.Checkbutton(top)
self.termcheck.place(relx=0.401, rely=0.473, relheight=0.066
, relwidth=0.329)
self.termcheck.configure(activebackground="#f9f9f9")
self.termcheck.configure(background="#d83253")
self.termcheck.configure(justify='left')
self.termcheck.configure(text='''Check For Term And Condition''')
self.termcheck.configure(variable=nnew_support.che57)
if __name__ == '__main__':
vp_start_gui()