forked from coinsspor/Crossfi-Desktop-Wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainscreen.py
29 lines (22 loc) · 1.37 KB
/
mainscreen.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
import tkinter as tk
import newwallet
from login_prvtkey import login_screen # login_prvtkey.py dosyasından fonksiyonu import ediyoruz
def clear_content(root):
for widget in root.winfo_children():
widget.destroy()
def show_main_screen(root):
clear_content(root)
app_info_label = tk.Label(root, text="Crossfi Desktop Wallet v1.0", font=('Arial', 20), bg='black', fg='white')
app_info_label.pack()
logo = tk.PhotoImage(file="logo.png")
logo_label = tk.Label(root, image=logo, bg='black')
logo_label.image = logo # referansı korumak için
logo_label.pack(pady=(20, 10))
developer_info_label = tk.Label(root, text="This application is developed by Coinsspor", font=('Arial', 10), bg='black', fg='white')
developer_info_label.pack()
frame = tk.Frame(root, bg='black')
frame.pack(fill='both', expand=True)
create_wallet_button = tk.Button(frame, text="Create a New Wallet", bg='#1E90FF', fg='white', font=('Arial', 14, 'bold'), command=lambda: newwallet.create_new_wallet(root))
create_wallet_button.pack(fill='x', expand=True, padx=20, pady=(50, 10))
login_private_key_button = tk.Button(frame, text="Login in With a private key", bg='#1E90FF', fg='white', font=('Arial', 14, 'bold'), command=lambda: login_screen(root))
login_private_key_button.pack(fill='x', expand=True, padx=20, pady=(10, 50))