1

I am trying to Add height of 600 and width of 600 to following form but I couldn't find any potion to do this for me? Can you please let me know how I can do this?

import Tkinter
import tkMessageBox
from Tkinter import *

app = Tkinter.Tk()
app.configure(background='black')
app.resizable(width=False, height=False)
app.title('Geometric Network')
app.iconbitmap(default='app.ico')
def helloCallBack():
   tkMessageBox.showinfo( "Hello Python", "Hello World")

B = Tkinter.Button(app, text ="Hello", command = helloCallBack)

B.pack()
app.mainloop()
falsetru
  • 357,413
  • 63
  • 732
  • 636
Behseini
  • 6,066
  • 23
  • 78
  • 125
  • 2
    Possible duplicate of [Setting the window to a fixed size with Tkinter](http://stackoverflow.com/questions/21958534/setting-the-window-to-a-fixed-size-with-tkinter) – Taku Mar 20 '17 at 17:10

1 Answers1

2

Using geometry, you can change the size or position of top level windows:

app = Tkinter.Tk()
app.geometry('600x600')  # <---
...
falsetru
  • 357,413
  • 63
  • 732
  • 636