Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > full screen gui

Reply
Thread Tools

full screen gui

 
 
linuxnooby@yahoo.com.au
Guest
Posts: n/a
 
      01-14-2006
Hi

I am trying to write a python script to run on windows xp that will
have a full screen gui.

The script has a function that creates a full screen (hides task bar)
top level window using tkinter.

If I close the window and call the function a 2nd time the resulting
window is full screen, but does not hide the task bar this time.

I have included code below. Any suggestions as to how i can fix this? I
am open to suggestions about other python gui

cheers David



from Tkinter import *
import time

#create invisible root window
root = Tk()
root.withdraw()

def closewindow():

top.destroy()
time.sleep(4)
create()

def create():
global top
top = Toplevel(root)


top.overrideredirect(1) #hides max min buttons
w, h = root.winfo_screenwidth(), root.winfo_screenheight()
top.geometry("%dx%d+0+0" % (w, h))


app = Frame(top)
app.grid()

bttnhide = Button(app, text ="destroy window and create a new window
in 4 seconds", command=closewindow)
bttnhide.grid()

bttnclose = Button(app, text ="exit application",
command=root.destroy)
bttnclose.grid()


create()

root.mainloop()

 
Reply With Quote
 
 
 
 
Yarvin
Guest
Posts: n/a
 
      01-14-2006
Hey

umm.... the program seems to work fine for me. I'm running Linux
though... might be different on windows....

Alvin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
laptop only 1/4 screen but on full screen bugsy General Computer Support 0 04-01-2008 08:51 AM
[ANN] Debian ruby-full package - a full installation of Ruby vince.hetk@gmail.com Ruby 1 05-28-2007 05:08 PM
Re: XP Pro (Full) , X64 (Full) and Windows Server 2003 R2 TRIAL - which is latest ntldr ? - Bobb - Windows 64bit 9 12-14-2005 04:59 PM
How can I replace a DVD's wide screen movie with a full screen movie from another DVD? blackhole@aol.com DVD Video 15 10-19-2005 02:53 PM
Options for generic full-text search without using database-specific full-text engine? Samuel R. Neff ASP .Net 2 06-10-2005 06:53 PM



Advertisments