Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #25427
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Python and Qt4 Designer |
| Date | 2012-07-16 13:07 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | (4 earlier) <mailman.2114.1342278483.4697.python-list@python.org> <1bb0d4df-3937-4d5f-aedb-734e0c54eb85@f9g2000pbd.googlegroups.com> <500255BA.5080102@gmail.com> <5002782D.7080009@swing.be> <50041D83.5020103@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2181.1342458489.4697.python-list@python.org> (permalink) |
On Mon, 16 Jul 2012 07:56:19 -0600, Michael Torrie <torriem@gmail.com>
declaimed the following in gmane.comp.python.general:
> On 07/15/2012 01:58 AM, Vincent Vande Vyvre wrote:
> > Rusi is not the op, and his question is about these lines
> >
> > app = None
> > if ( not app ):
>
> Yeah that's a no-op. The original author of that code is clearly
> confused there.
>
I've wondered if the original sample had been much larger at one
time, and embedded in some sort of "auto-restart" loop (say, for a kiosk
application). In that situation, one would perhaps want the "app = None"
somewhere near the start to "wipe out" the previous GUI, and the "if"
was as a guard to prevent a second start-up [if there were some other
loop also in the code].
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[newbie] Python and Qt4 Designer Jean Dubois <jeandubois314@gmail.com> - 2012-07-11 08:37 -0700
Re: [newbie] Python and Qt4 Designer Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2012-07-12 02:59 +0200
Re: Python and Qt4 Designer Jean Dubois <jeandubois314@gmail.com> - 2012-07-11 23:42 -0700
Re: Python and Qt4 Designer Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2012-07-13 03:52 +0200
Re: Python and Qt4 Designer Jean Dubois <jeandubois314@gmail.com> - 2012-07-13 14:12 -0700
Re: Python and Qt4 Designer Michael Torrie <torriem@gmail.com> - 2012-07-14 08:45 -0600
Re: Python and Qt4 Designer rusi <rustompmody@gmail.com> - 2012-07-14 10:13 -0700
Re: Python and Qt4 Designer Michael Torrie <torriem@gmail.com> - 2012-07-14 23:31 -0600
Re: Python and Qt4 Designer Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2012-07-15 09:58 +0200
Re: Python and Qt4 Designer Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-15 08:42 -0400
Re: Python and Qt4 Designer Michael Torrie <torriem@gmail.com> - 2012-07-16 07:56 -0600
Re: Python and Qt4 Designer Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-16 13:07 -0400
Re: Python and Qt4 Designer Jean Dubois <jeandubois314@gmail.com> - 2012-07-13 14:12 -0700
csiph-web