-
Notifications
You must be signed in to change notification settings - Fork 1
/
StartPage.py
51 lines (48 loc) · 2.22 KB
/
StartPage.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
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 23 19:05:10 2017
@author: SuperKogito
"""
import tkinter as tk
from tkinter import *
from tkinter.scrolledtext import *
class StartPage(tk.Frame):
""" Start page class """
def __init__(self, parent, controller):
tk.Frame.__init__(self, parent)
self.controller = controller
self.configure(background='black')
label = tk.Label(self, text='\n\n\n\n\nWelcome to Cryptos!\n\n'
'Cryptos is a simple, beginner friendly'
'encrypter and hasher written in '
'python\n It provides AES-128 '
'encryption and decryption alongside '
'with SHA-256 hashing\n',
bg='#000000', fg="white")
label.pack(side="top", fill="x", pady=10)
self.FrameX = tk.Frame(self, bg='#000000')
frame1 = tk.Frame(self.FrameX, width=300, height=50)
frame1.grid(column=0, row=0)
self.text = tk.Label(frame1,
text='\nDeveloped by: SuperKogito\n',
bg='#000000',
fg='White',
font=('Monospace', 10))
self.text.pack()
frame2 = tk.Frame(self.FrameX, bg='#000000', width=300, height=50)
frame2.grid(column=0, row=1)
frame3 = tk.Frame(self.FrameX, bg='#000000', width=300, height=50)
frame3.grid(column=0, row=2)
self.FrameX.pack()
button1 = tk.Button(frame3, text="Exit",
command=lambda: controller.show_frame("ExitPage"))
button1.pack(side=tk.RIGHT)
button2 = tk.Button(frame3, text="Start",
command=lambda: controller.show_frame("PageOne"))
button2.pack(side=tk.RIGHT, padx=5, pady=5)
button1.configure(background="#000000", foreground='White',
activebackground='#0080ff',
activeforeground='white')
button2.configure(background="#000000", foreground='White',
activebackground='#0080ff',
activeforeground='white')