Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43870
| References | <5170648d$0$1368$4fafbaef@reader2.news.tin.it> <kkpof8$lhi$1@reader1.panix.com> <51706772$0$1368$4fafbaef@reader2.news.tin.it> |
|---|---|
| Date | 2013-04-19 08:00 +1000 |
| Subject | Re: How to set my gui? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.803.1366322414.3114.python-list@python.org> (permalink) |
On Fri, Apr 19, 2013 at 7:36 AM, Tracubik <affdfsdfdsfsd@b.com> wrote: > On 18/04/2013 23:27, John Gordon wrote: >> >> In <5170648d$0$1368$4fafbaef@reader2.news.tin.it> Tracubik >> <affdfsdfdsfsd@b.com> writes: >> >>> i suppose i've to first generate the window and than populate it, but >>> where i've to put the "search for occurences" code? I don't think init() >>> is the right place.. >> >> >> What GUI library are you using? >> > > Gtk3 via Glade, anyway the problem is referred to all gui toolkit, isn't it? You're looking here for fairly broad and general advice on GUI code layout. Unfortunately that's so broad that all I can say is "there are many ways to do it". :) Back in the 1990s, I used to (mostly) treat GUI programming as somewhat different from console programming. I'd use a window-builder, I'd structure my code in an event loop instead of top-down imperative, I'd use an IDE rather than simply coding in a text editor. But 1 Corinthians 13:11. These days, GUI programming is to me just programming and calling on certain libraries/modules. There are many ways to lay out code, and treating the GUI framework/boilerplate as the most important is only one of them. One thing you may want to consider is using your main thread for the UI, and spinning off another thread to do your search. But do that ONLY if you know you understand threads, and threading in Python. Otherwise you'll make your life unnecessarily hard. :) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to set my gui? Tracubik <affdfsdfdsfsd@b.com> - 2013-04-18 23:24 +0200
Re: How to set my gui? John Gordon <gordon@panix.com> - 2013-04-18 21:27 +0000
Re: How to set my gui? Tracubik <affdfsdfdsfsd@b.com> - 2013-04-18 23:36 +0200
Re: How to set my gui? Chris Angelico <rosuav@gmail.com> - 2013-04-19 08:00 +1000
Re: How to set my gui? Walter Hurry <walterhurry@lavabit.com> - 2013-04-18 22:57 +0000
Re: How to set my gui? Chris Angelico <rosuav@gmail.com> - 2013-04-19 09:24 +1000
Re: How to set my gui? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-04-19 19:10 -0400
Re: How to set my gui? Chris Angelico <rosuav@gmail.com> - 2013-04-20 12:10 +1000
Re: How to set my gui? Roland Koebler <r.koebler@yahoo.de> - 2013-04-19 11:47 +0200
Re: How to set my gui? Alister <alister.ware@ntlworld.com> - 2013-04-19 08:42 +0000
Re: How to set my gui? Tracubik <affdfsdfdsfsd@b.com> - 2013-04-19 16:37 +0200
Re: How to set my gui? Gene Heskett <gheskett@wdtv.com> - 2013-04-19 22:19 -0400
csiph-web