Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38452

Re: Moving mouse, Python3 and PyObjc

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'importing': 0.04; 'rejected': 0.07; 'python': 0.09; 'runtime': 0.09; 'subject:Python3': 0.09; 'windows,': 0.09; 'gui': 0.11; 'url:packages': 0.16; 'write,': 0.16; 'wrote:': 0.17; 'examples': 0.18; '>>>': 0.18; 'module': 0.19; 'translate': 0.20; 'sort': 0.21; 'meant': 0.21; 'combination': 0.22; 'either.': 0.22; "i'd": 0.22; 'nearly': 0.23; 'tools,': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'guess': 0.27; 'module.': 0.27; 'cocoa': 0.29; 'questions.': 0.29; 'read,': 0.29; 'figure': 0.30; 'code': 0.31; 'url:python': 0.32; 'help,': 0.32; 'mac': 0.32; 'could': 0.32; 'choosing': 0.33; 'docs': 0.33; 'environment,': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; "can't": 0.34; 'doing': 0.35; 'but': 0.36; 'url:org': 0.36; 'modules': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'url:docs': 0.38; 'url:en': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'application': 0.40; 'received:192.168': 0.40; 'help': 0.40; 'your': 0.60; 'red': 0.60; "you've": 0.61; 'subject:, ': 0.61; 'mentioned': 0.63; 'different': 0.63; 'license': 0.65; 'results': 0.65; 'received:74.208': 0.71; 'saw': 0.75; 'mailer': 0.84; 'received:74.208.4.194': 0.84; 'running,': 0.84; 'subject:Moving': 0.84; 'url:api': 0.84
Date Fri, 08 Feb 2013 09:36:21 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
MIME-Version 1.0
To python-list@python.org
Subject Re: Moving mouse, Python3 and PyObjc
References <da8d9786-1e39-44c0-80af-14dab2327074@googlegroups.com> <mailman.1468.1360289355.2939.python-list@python.org> <c4204f6f-af7f-4651-825b-cc50e48bf12b@googlegroups.com>
In-Reply-To <c4204f6f-af7f-4651-825b-cc50e48bf12b@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:oXfYKxkeMa8jOZVmPW8RVleHw4d/6OwmwhDbRYE7WWh CbM4T8ik4DxzerUXVTWemd7/jiup+yX1Q5C9eWruPBgjxqBQw/ DjH5rJcW2VzhRmZeOhkuoTxiq91cNeIPKr2dKI0NafbL9p0mgz T9ugBFryW4CQttHKLbzqwgWtLnYex92A1+FslGIjTxN7KkKcP8 3/bilUXAEOSZ9cW42PMtQnrnXJLbdE/uwUfAIHWeQV3jdKODfq HYE3XGeXpaW7BXEHCDHK+niyzf/m8VGXFm3XToMzpZ8YRFxUZO xL6lfuPBHi6uJVYhLeqqPdkrn9/NwaedRCwwfDSOtFMDaupNg= =
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.1502.1360334202.2939.python-list@python.org> (permalink)
Lines 58
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360334202 news.xs4all.nl 6854 [2001:888:2000:d::a6]:37088
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38452

Show key headers only | View raw


On 02/08/2013 05:32 AM, Oneill wrote:
>
>>

Your emails are very hard to read, since your mailer doublespaces nearly 
everything you quote.

>>>  <snip>
>>
>>
>> What's the objc module got to do with the mouse?
>>
>>
>>
>>       http://packages.python.org/pyobjc/api/module-objc.html
>>
>>
>>
>> Perhaps you meant some other module.  Could you be specific?  What
>>
>> modules did you import, what other code did you write, what version of
>>
>> Python are you running, and on which computer OS did you get the results
>>
>> you describe?
>>
>>
>>
>> --
>>
>> DaveA
>
>
>
> Well without PyObjc i couldnt control the mouse... I saw some examples importing Quartz  but that also failed...

Well, now I can guess some of the answers to my questions.  You 
mentioned Windows, but apparently that was a red herring.  You are 
apparently writing an objective C application (Cocoa) for the iPhone, 
and using the pyobjc module to translate Python to Objective C.

so the answer to your original problem (mouse going to 0,0) could need 
some combination of Mac development tools, Cocoa runtime environment, 
etc. to solve.  You're not writing cross-platform, so you've rejected 
the standard guis for doing this sort of thing.

Perhaps the page at
     http://docs.python-guide.org/en/latest/scenarios/gui/

could be of help in choosing a different gui toolkit.

But I can't figure I'd be of any help, since I don't have a Mac, nor a 
license for their development environment, nor any docs for either.



-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Moving mouse, Python3 and PyObjc joaofguiomar@gmail.com - 2013-02-07 15:22 -0800
  Re: Moving mouse, Python3 and PyObjc Terry Reedy <tjreedy@udel.edu> - 2013-02-07 19:51 -0500
  Re: Moving mouse, Python3 and PyObjc Dave Angel <davea@davea.name> - 2013-02-07 21:08 -0500
    Re: Moving mouse, Python3 and PyObjc Oneill <joaofguiomar@gmail.com> - 2013-02-08 02:32 -0800
      Re: Moving mouse, Python3 and PyObjc Dave Angel <davea@davea.name> - 2013-02-08 09:36 -0500
    Re: Moving mouse, Python3 and PyObjc Oneill <joaofguiomar@gmail.com> - 2013-02-08 02:32 -0800
  Re: Moving mouse, Python3 and PyObjc Oneill <joaofguiomar@gmail.com> - 2013-02-08 02:24 -0800

csiph-web