Dear All ...
I play wxPython with twisted.
Currently I can control the content of my Frame from another application
via jsonrpc.
The Main/Top window is displayed full screen.
Now I need also to run Navit ( http://www.navit-project.org ) , and also
displayed FullScreen.
Kindly please tell me how to :
1. Hide the top/main window ?
Hide(), or Show(False), or if you are using true full-screen mode then ShowFullScreen(False).
2. Show the top/main window on top (blocking) navit window ?
This may be a bit tricky since modern platforms are picky about applications moving themselves on top of other applications without the user doing it themselves. It's a security thing to help prevent one application from spoofing another and stealing the user's identity or other private information.
So you're going to have to experiment to find what your platform allows and what works best. Start with a Show() (or ShowFullScreen(True)) followed by a Raise(). Or perhaps recreating your main window instead of hiding/showing it will allow it to be raised over the other application. Or you may have to find a way to make the navit window be hidden or minimized.
So you're going to have to experiment to find what your platform allows and what works best. Start with a Show() (or ShowFullScreen(True)) followed by a Raise().
I try to use :
def jsonrpc_risescreen(self,x):
self.frame.ShowFullScreen(True)
self.frame.Raise()
return 'OK'
Got no error , but the screen didn't showed up.
Or perhaps recreating your main window instead of hiding/showing it will allow it to be raised over the other application. Or you may have to find a way to make the navit window be hidden or minimized.
Kindly please give me your enlightment on how to fix this problem.
Just in case you want to test jsonrpc to my script, from python shell :
import jsonrpclib
conf_displayurl = 'http://127.0.0.1:50009'
conf_display= jsonrpclib.Server(conf_displayurl) #To Hide the screen
conf_display.hidescreen({}) #To Raise the screen
conf_display.risescreen({})