Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43870
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.017 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'suppose': 0.07; 'editor.': 0.09; 'ide': 0.09; 'subject:set': 0.09; 'subject:How': 0.10; 'gui': 0.12; 'anyway': 0.14; 'thread': 0.14; 'code?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it".': 0.16; 'subject:gui': 0.16; 'threads,': 0.16; 'ui,': 0.16; 'wrote:': 0.18; 'library': 0.18; '>>>': 0.22; 'code,': 0.22; 'programming': 0.22; 'coding': 0.22; 'days,': 0.24; 'fairly': 0.24; "i've": 0.25; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'programming.': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'search.': 0.31; 'writes:': 0.31; 'another': 0.32; 'text': 0.33; 'fri,': 0.33; "i'd": 0.34; 'problem': 0.35; 'advice': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'received:209': 0.37; 'window': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'structure': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'referred': 0.60; 'most': 0.60; 'john': 0.61; 'simply': 0.61; "you're": 0.61; 'first': 0.61; 'back': 0.62; "you'll": 0.62; 'different': 0.65; 'life': 0.66; 'here': 0.66; '1990s,': 0.84; 'hard.': 0.84; 'layout.': 0.84; 'treating': 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=B0ioBVAJJHeqOGdI+uP/cvTavKp+317fS4OygYu/iqU=; b=p5jfnpd7Z9V0QPtrJk45uPp9GDBzv2Fgo9EQYavy1dNworJuwi7NDQXDD8llW8zj2l xgrt6f1OET7omK3blrDMKfsgCdj9SCjy4N+I0oO2oP+QJt2aCBo0rp5RYssm/tGQ9yIe Bvt8ZB9IAMT0L5qkoBobwen9Ysoz1O21uOmJgctL2rpPuXJXvtlhmDEgC4wEzTAMsaGw XfX34GgkLjqeZvovdkP8O/jE9je9gwFkqCarTcNXC/hiiDXq7Fuk9EuWzR40x3EP7417 YuX2pVpzdgC4V2HTnMZLJy/FkE9YMjsJReRlJ7bc/xKCLxLjmVMGf9EciN1aMM64xOgC 4zYQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.220.88.145 with SMTP id a17mr9605511vcm.66.1366322411997; Thu, 18 Apr 2013 15:00:11 -0700 (PDT) |
| In-Reply-To | <51706772$0$1368$4fafbaef@reader2.news.tin.it> |
| References | <5170648d$0$1368$4fafbaef@reader2.news.tin.it> <kkpof8$lhi$1@reader1.panix.com> <51706772$0$1368$4fafbaef@reader2.news.tin.it> |
| Date | Fri, 19 Apr 2013 08:00:11 +1000 |
| Subject | Re: How to set my gui? |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.803.1366322414.3114.python-list@python.org> (permalink) |
| Lines | 35 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1366322414 news.xs4all.nl 2260 [2001:888:2000:d::a6]:51763 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:43870 |
Show key headers only | View raw
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