Re: iterate over list while changing it

2009-09-25 Thread Warpcat
iterate over a copy of the list: for i, x in enumerate(a[:]): Always worked for me ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Query screen resolution?

2009-09-07 Thread Warpcat
If it's a GUI app, you ask the GUI toolkit which you're using. Heh, I suppose you're right :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Query screen resolution?

2009-08-28 Thread Warpcat
On Aug 28, 11:27 am, Rami Chowdhury rami.chowdh...@gmail.com wrote: But I was hoping for something built-in, and something non-OS specific. I don't know about built-ins, but I do believe that pygame (which *is*   cross-platform) will let you get at that information:        

Re: Query screen resolution?

2009-08-28 Thread Warpcat
Your question is based upon the notion that the screen is a meaningful concept. Once you move away from Windows (and systems which intentionally try to be like Windows), that's no longer true. Good points. Always something I haven't thought of. Ok so... let's *presume* the user has a

object query assigned variable name?

2009-05-01 Thread warpcat
I've passed this around some other groups, and I'm being told probably not possible. But I thought I'd try here as well :) I *did* search first, and found several similar threads, but they quickly tangented into other specifics of the language that were a bit over my head :) At any rate,

Re: better Python IDE? Mimics Maya's script editor?

2006-06-14 Thread warpcat
I'm not sure where you got pythonwin sucks from my text (none of those words are there). Saying one aspect of a piece of software is clunky to me (if that's what you're refering too?) or saying the whole software sucks are pretty different IMO. All I stated is that it's very different from how

better Python IDE? Mimics Maya's script editor?

2006-06-08 Thread warpcat
I've been scripting in Maya, via mel for years now. Recently learning to Python, love it. Thing that's driving me nuts it the IDE. I'm using PythonWin right now and trying to find something better, mainly with this functionality: In Maya's mel script editor window, it's split into two

Python and DevTrack?

2005-11-01 Thread warpcat
I'm a python nubie, so be gental. I've been setting up functionality by managing my Perforce clientspec with python (since it seems all of P4's commands are avaliable at the prompt), and I'd love to get access to DevTrack in the same way, but it's looking like it's off limits, UI only. Does