From: <pie...@ba...> - 2004-07-15 12:57:37
|
Hello, I would like to know how I can make a Pythoncard application that hides in the (Windows) system tray when the window is minimized & that re-appears if I doubleclick on the system-tray icon. It would also be nice if a menu appears when the tray icon is right-clicked... Can anyone help me with this? Pieter Coppens "The information contained in this e-mail and any attachment thereto is confidential and may contain information which is protected by intellectual property rights. This information is intended for the exclusive use of the recipient(s) named above. This e-mail does not constitute any binding relationship or offer toward any of the addressees. If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited. If you have received this message in error, please notify the sender and destroy it immediately after. The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability." |
From: Joona K. <jo...@fi...> - 2004-07-15 13:36:01
|
Hi > I would like to know how I can make a Pythoncard application that hides in > the (Windows) system tray when the window is minimized & that re-appears if > I doubleclick on the system-tray icon. It would also be nice if a menu > appears when the tray icon is right-clicked... I've done solution like this once, but unfortunately I lost the code on hard drive crash. The article at wxPython wiki named FlashingTaskbarIcon was really helpful for me. You have to use wxPython to do it, but it's very siple to implement to work with PythonCard application. I'd love to help you more, but I have to hurry right now, so I'll throw this link to you. I hope that helps. http://wiki.wxpython.org/index.cgi/FlashingTaskbarIcon Greetings, joona -- Joona Kulmala <jo...@fi...> |
From: Adam R. <Ada...@ch...> - 2004-07-15 14:19:19
|
basically you'll need the following code(put in on_openBackground): #make the TaskBar icon self.tbIcon = wxTaskBarIcon() icon = wxIcon(cwd+"/"+'favicon.ico', wxBITMAP_TYPE_ICO) self.tbIcon.SetIcon(icon, "My Application") wx.EVT_TASKBAR_LEFT_DCLICK(self.tbIcon,self.OnTaskBarActivate) wx.EVT_TASKBAR_RIGHT_UP(self.tbIcon, self.OnTaskBarMenu) wx.EVT_MENU(self.tbIcon, self.TBMENU_RESTORE,self.OnTaskBarActivate) wx.EVT_MENU(self.tbIcon, self.TBMENU_CLOSE, self.OnTaskBarClose) wx.EVT_IDLE(self,self.idleHandler) wx.EVT_CLOSE(self,self.doExit) Of course, you'll need to define teh functions self.OnTaskBarActivate,self.OnTaskBarMenu, etc Also note you'll need an icon. I happen to use the oh so ubiquitous favicon.ico that I used on an accompanying web page. Hope that helps. pie...@ba... wrote: >Hello, > >I would like to know how I can make a Pythoncard application that hides in >the (Windows) system tray when the window is minimized & that re-appears if >I doubleclick on the system-tray icon. It would also be nice if a menu >appears when the tray icon is right-clicked... > >Can anyone help me with this? > >Pieter Coppens > > >"The information contained in this e-mail and any attachment thereto is confidential and >may contain information which is protected by intellectual property rights. >This information is intended for the exclusive use of the recipient(s) named above. >This e-mail does not constitute any binding relationship or offer toward any of the addressees. >If you are not one of the addressees , one of their employees or a proxy holder entitled >to hand over this message to the addressee(s), any use of the information contained >herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited. >If you have received this message in error, please notify the sender and destroy it immediately after. >The integrity and security of this message cannot be guaranteed and it may be subject to >data corruption, interception and unauthorized amendment, for which we accept no liability." > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >_______________________________________________ >Pythoncard-users mailing list >Pyt...@li... >https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > |