I do this with my frozen app which uses a Qt UI, and I use a variation of the QSingleApplication class: http://pastebin.com/1RK0BhDC
-Dan [image: Dyn logo, Dyn.com] <http://dyn.com/> <http://twitter.com/dyn> <http://twitter.com/dyninc> [image: Dyn facebook account] <http://facebook.com/dyn> [image: Dyn LinkedIn account] <http://linkedin.com/company/dyn> Dan McCombs / Senior Software Engineer 603 296 1568 @danmccombs <http://twitter.com/danmccombs/> On Fri, Aug 15, 2014 at 9:00 AM, Leandro Poblet <leandrodrho...@gmail.com> wrote: > Hello, > > What I'm referring as locking is to avoid the same .exe to execute twice, > like this: http://i.imgur.com/MLqr73c.png > > I know how to do this if I execute the .py file, but I don't know how to > do it properly with an .exe file. > > > 2014-08-14 18:43 GMT-03:00 Hashem Nasarat <has...@riseup.net>: > > Are you looking for something like >> https://github.com/pycontribs/tendo/blob/master/tendo/singleton.py ? >> >> On 08/14/2014 10:16 AM, Leandro Poblet wrote: >> > Hello, >> > >> > Is there a way to lock the .exe within python? Because I have a small >> > GUI that can be opened more than once and I haven't find anything about >> > this once It's compiled. >> > >> > >> > >> ------------------------------------------------------------------------------ >> > >> > >> > >> > _______________________________________________ >> > cx-freeze-users mailing list >> > cx-freeze-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >> > >> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> cx-freeze-users mailing list >> cx-freeze-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > cx-freeze-users mailing list > cx-freeze-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > >
------------------------------------------------------------------------------
_______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users