python - TclError: bad geometry specifier -


I tried to use the following script using the geometry for the tininker GUI using the Dragon Tanker:

< Pre> to Tkinter import * root = Tk () w = 300 h = 200 ws = root.winfo_screenwidth () hs = root.winfo_screenheight () x = (ws / 2) - (w / 2) y = ( Hs / 2) - (H / 2) Rooted ('% dx% d +% d +% d'% (w, h, x, y)) root.mainloop () `

I get the following error:

TclError: Bad geometry specifier "1920 * 1200 + 150 + 100".

The error appears that you will be '% d *% d +% d Instead of '% dx% d +% d +% d'% (w, h, x, y) +% d '% (w, h, x, y)
Are you sure you use x and not * ?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -