Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 23rd, 2004, 12:34 PM
Nuna Nuna is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 Nuna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
execl() and wxtoolbar

Hi,

I want to use execl() function as the event under

def OnToolbar1tools0ToolRclicked(self, event):


should I import os, should I use os.execl()..?
I haven't found any good example on internet on how to call a child process under wxpython.

Need help. If you figure it's a very stupid question, well tell me what to study, or just point me some public source code which contains the call of a child process associated with a toolbar's button, please.

thanks,

Nuna

Reply With Quote
  #2  
Old April 23rd, 2004, 06:42 PM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
os.execl - you want to terminate the wxPython based program and then launch another? In which case I would set some variable when the toolbar item is clicked and then cause the wxApp to finish. Code after the App.mainloop() can then check the variable and act on it such as using os.execl


If you want to manage a process from within your program then personally I've used popen2.Popen4 as it gives me a lot of control and separation from the child process.

Grim
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #3  
Old April 23rd, 2004, 09:42 PM
Nuna Nuna is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 Nuna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks a lot for the cues. I'll go on with the popen functions.

Nuna

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > execl() and wxtoolbar


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT