Need Help [message #1814604] |
Fri, 13 September 2019 15:28  |
Eclipse User |
|
|
|
import tkinter as tk
root = tk.Tk()
def main_account_screen():
main_screen = tk()
main_screen.geometry("1920x1080") #set the configuration of GUI window
main_screen.title("Account Login") #set the title of GUI window
#create a FORM label
tk.Label(text="Choose login Or Register", bg="blue", width="300", height="2", font=("Calibri", 13)).pack()
tk.Label(text="").pack()
#create a Login button
tk.Button(text="Login", height="2", width="30").pack()
tk.Label(text="").pack()
#create a register button
tk.Button(text="Register", height="2", width="30").pack()
main_screen.mainloop() # start the GUI
main_account_screen() # call the main_account_screen() function
I know its correct but when I run it; a window doesn't activate to show me the screen, is there a setting I have to have that isn't set up? or is the code actually wrong? Need Help!
|
|
|
Re: Need Help [message #1814634 is a reply to message #1814604] |
Sat, 14 September 2019 22:25  |
Eclipse User |
|
|
|
This isn't a general Python programming forum, and it's unclear how this is related to Eclipse. Are you sure this is the right place and audience for getting help?
|
|
|
Powered by
FUDForum. Page generated in 0.08615 seconds