This repository has been archived by the owner on Mar 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui ui enchance login page & rank & id done ++
- Loading branch information
Redcxx
committed
Aug 29, 2019
1 parent
7f4a4ee
commit f509099
Showing
11 changed files
with
444 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,2 @@ | ||
from tkinter import * | ||
|
||
# image = None | ||
from tkinter import ttk | ||
|
||
|
||
def make_button(master, text=''): | ||
# global image | ||
# image = PhotoImage(file='neurons.gif') | ||
return Button(master=master, | ||
text=text, | ||
relief=FLAT, | ||
padx=10, | ||
pady=2, | ||
width=17 | ||
) | ||
|
||
|
||
def make_label(master, text=''): | ||
return Label(master=master, | ||
text=text) | ||
|
||
|
||
def make_entry(master): | ||
return Entry(master=master, borderwidth=0, highlightthickness=0, justify=CENTER) | ||
|
||
|
||
def make_frame(master): | ||
return Frame(master=master) | ||
|
||
|
||
def make_dropdown(master, default, choices): | ||
dropdown = ttk.Combobox(master, values=choices, state='readonly') | ||
dropdown.configure(width=17) | ||
dropdown.set(default) | ||
return dropdown | ||
|
||
|
||
def make_text(master): | ||
return Text(master, wrap=WORD, height=1, width=80, state=DISABLED, highlightthickness=0, borderwidth=0) | ||
|
||
|
||
def grid(component): | ||
component.grid(padx=5, pady=5) | ||
|
||
|
||
def pack(component): | ||
component.pack(padx=5, pady=5) | ||
|
||
|
||
def button_grid_configure(button): | ||
button.grid_configure(padx=5, pady=5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.