473,325 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

How to pass the focus on python application

Hi everybody !

first, sorry for my poor english, I'm french mothertongue ;)

technologies :
--------------
Python 2.3
Twisted Matrix 1.2.0
wxPython 2.5.1

platform :
----------
winXP
I explain my problem :

I try to build a multi-plateform python socket server to interact with
flash animations.
Animations send by xmlSocket xml string, server intercept string,
parse it, execute method and return result as xml string to the
FlashXmlSocket.

at beginning, xml sended string contains DOM document who describe one
or multiples operation(s) to execute. So final xml string (with return
results) contains already one or multiple return execution statements

When i use serveal methods like OpenFile or SaveFile, DialogBox
appears on the screen.

But it appear not on the top, because focus is on flash animation...
So if flash animation is for exemple in full-screen, user don't see
the opened dialog-box...

How to, on each platform (win, linux, mac), add a method to set the
focus on the server if it's required ??

for example, send xml contain method like this :

1. setFocusToServer ()
3. setNewWorkingDirectory (path)
2. OpenDialog (message, defaultDirectory, defaultFile, wildcard)

and add a --

setFocusToServer (self)

if wx.Platform == '__WXMAC__':
# code to focus server on mac when required

elif wx.Platform == '__WXMSW__':
# code to focus server on window when required

elif wx.Platform == '__WXGTK__ || wx.Platform == '__WXMOTIF__ :
# code to focus server on linux when required
-- method to focus application on each platform

many thanks in advance for your ideas, url and experience about this
subject
Thierry
Jul 18 '05 #1
0 1302

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: annagel | last post by:
I am looking for a way to force a Tkinter window into focus on a system level. I know the force focus method should bring one window of my application into focus, but it seems I need to have some...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
10
by: blaine | last post by:
Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is...
1
by: massimo s. | last post by:
Hi, I would like to know if 1)there is a Python way to tell under which terminal process a Python command-line application is running 2)there is a Python way to tell the OS to give focus to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.