Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'subject:set': 0.09; 'subject:How': 0.10; 'gui': 0.12; 'thread': 0.14; 'from:addr:r.koebler': 0.16; 'from:name:roland koebler': 0.16; 'received:78.47': 0.16; 'subject:gui': 0.16; 'tasks,': 0.16; 'threads,': 0.16; 'ui,': 0.16; 'programming': 0.22; 'days,': 0.24; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'search.': 0.31; 'another': 0.32; 'but': 0.35; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'simple': 0.61; 'content-disposition:inline': 0.62; "you'll": 0.62; 'life': 0.66; 'hard.': 0.84 Date: Fri, 19 Apr 2013 11:47:16 +0200 From: Roland Koebler To: python-list@python.org Subject: Re: How to set my gui? References: <5170648d$0$1368$4fafbaef@reader2.news.tin.it> <51706772$0$1368$4fafbaef@reader2.news.tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366364844 news.xs4all.nl 2191 [2001:888:2000:d::a6]:44691 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43892 Hi, > These days, GUI programming is to me just > programming and calling on certain libraries/modules. +1 > 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. :) For simple tasks, you don't need threads, but can use the glib-functions timeout_add(), idle_add() etc. Roland