Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Need Help(Python, Tkinter not working)
Need Help [message #1814604] Fri, 13 September 2019 19:28 Go to next message
Denis Guay is currently offline Denis GuayFriend
Messages: 1
Registered: September 2019
Junior Member
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] Sun, 15 September 2019 02:25 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4418
Registered: July 2009
Senior Member

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?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Tomcat server is having trouble starting
Next Topic:Unresolved inclusion
Goto Forum:
  


Current Time: Sat Feb 24 14:13:51 GMT 2024

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

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

Back to the top