Hi to all,
i'm writing a little interface in python with Tkinter on linux debian,
with this interface i need to execute some program like rdesktop and vnc. but i've a little problem:
i use a fullscreen window without decorator (read buttons for iconify and close) where i've putted some buttons.
the problem is that when i call vnc i the server doesn't respond vncviewer show a error message window but this window stay always under the main window. so i can't see it.
i've tried to put the interface into a window not fullscreen and all goes well, but i need fullscreen so
what i have to do for to see this window over all?
thank's to all
Giorgio
the code i use i similar to (i've rewrited some code here for demo purpose but not tested...):
import subprocess
from Tkinter import *
class mywindow
def __init__(self):
self.mw=Tk()
sw,sh=self.mw.winfo_screenwidth(),self.mw.winfo_screenheight()
self.mw.geometry("%dx%d+0+0"%(sw,sh))
self.mw.resizable(0,0)
self.mw.attributes("-fullscreen",1)
self.bt=Button(self.mx,text='vnc',command=self.callvnc)
self.bt.pack()
self.ex=Button(self.mw,text='close',command=self.mw.destroy)
self.ex.pack()
self.mw.mainloop()
def callvnc(self):
server = '192.168.1.1' # put your vnc server ip
pp=subprocess.Popen(['vncviewer','-xdialog',server])