Skip to main content



      Home
Home » Newcomers » Newcomers » Need Help(Python, Tkinter not working)
Need Help [message #1814604] Fri, 13 September 2019 15:28 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
Previous Topic:Tomcat server is having trouble starting
Next Topic:Unresolved inclusion
Goto Forum:
  


Current Time: Wed Jul 23 09:57:48 EDT 2025

Powered by FUDForum. Page generated in 0.08615 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top