[Tutor] Checking if a GtkEntry is empty

Anthony Papillion papillion at gmail.com
Sat Feb 25 03:18:43 CET 2012


On Fri, Feb 24, 2012 at 8:08 PM, Steven D'Aprano <steve at pearwood.info>
wrote:
>
> Are you aware that the database connection gets made, but not stored
> anywhere? Once the Manager instance is created, the database connection is
> thrown away.
>
> My guess is that you mean to use self.conn instead of conn in the above.

<snip>

Hi Steven,

Thanks for all the fantastic feedback! I'm fairly new to Python and still
trying to wrap my head around some of the basic concepts as well as learn
pyGtk at the same time. While I should have known about the problems you
mentioned, I completely spaced them out and good design wasn't really in my
head when I wrote this code, unfortunately.  Thanks for the helpful hints.
Duly noted and implemented :-)

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120224/1050d7de/attachment.html>


More information about the Tutor mailing list