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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'example:': 0.03; 'english,': 0.09; 'function,': 0.09; 'key.': 0.09; 'subject:using': 0.09; 'windows,': 0.09; 'clues': 0.16; 'exactly?': 0.16; 'subject:Tkinter': 0.16; 'subject:skip:m 10': 0.16; 'subject:when': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'everyone,': 0.19; "python's": 0.19; 'code,': 0.22; 'header:User- Agent:1': 0.23; 'define': 0.26; 'post': 0.26; 'header:In-Reply- To:1': 0.27; 'function': 0.29; 'specified': 0.30; "i'm": 0.30; 'anyone': 0.31; 'running': 0.33; 'could': 0.34; 'subject:with': 0.35; "can't": 0.35; 'but': 0.35; 'clear': 0.37; 'window': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'new': 0.61; 'received:74.208': 0.68; 'fact,': 0.69; 'press': 0.70; '"it': 0.84; 'email addr:rocketmail.com': 0.84; 'received:74.208.4.194': 0.84; 'subject:Unwanted': 0.84 Date: Sun, 28 Apr 2013 17:18:52 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Unwanted window spawns when using Tkinter with multiprocessing. References: <7df67006-2176-42cb-a8ce-95a72339e7e2@googlegroups.com> In-Reply-To: <7df67006-2176-42cb-a8ce-95a72339e7e2@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:qgoAZ3kzhAlSpwbmStq+RjyxyVzmcTcJ/CEaLdlmSRI 6KNWKj1AkGe7sys8EEE/1pgmAynTHQGkkijKEVMKo8WkS5q0iS JmjIOgv16nBtS0M80pyINVmI5GezZML8Wow2tnSbbciR1fzj8Q 6NtGdUsyRnufbcS4UhsZ7/pyFx8TzTmDpcRgnPhblecP13YwbN /bTjg4jip4gLw7gjJxNsJbCoa6swuEEydsGFZd2nWzu7mb244o 13uHi9SdsJnjHVWPR5+gW/E4D+bocb8qJ2VNszZMK3QYaFwpIR fMxEl8wsMZF/i5y0Ykp9iDoEbR4yrVccc4uVQOt2U3rzaCmjg= = 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367183951 news.xs4all.nl 15945 [2001:888:2000:d::a6]:47809 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44477 On 04/28/2013 02:33 PM, alternative00@rocketmail.com wrote: > Hi everyone, > > I'm trying to use multiprocessing to avoid Python's GIL but with Tkinter, instead of running my main function, it spawns new windows. In fact, my fuction is used everytime I press a specified key, but with multiprocessing I only get a new window when I hit a key. Does anyone have a solution ? > If you can't post in clear English, then give us some other clues to compensate. Could you post some code, define some function names, and use fewer pronouns and indirection? for example: "it spawns new windows" -- What spawns new windows, exactly? -- DaveA