Re: which one do you prefer? python with C# or java?

2012-06-10 Thread Corey Richardson
... I can't think of many. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing MySQLdb via FTP?

2012-06-08 Thread Corey Richardson
On Fri, 8 Jun 2012 09:55:23 -0800 Tim Johnson t...@akwebsoft.com t...@akwebsoft.com wrote: See the thread titled Python libraries portable? you will note that Corey Richardson makes the statement that MySQLdb is a C extension. I accepted that statement, but upon looking

Re: Python libraries portable?

2012-06-07 Thread Corey Richardson
. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Python libraries portable?

2012-06-07 Thread Corey Richardson
extension. Assuming same architecture and shared libraries, it will *probably* work, but no guarantees. If any of those are different, even slightly, it will break. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Python libraries portable?

2012-06-07 Thread Corey Richardson
be limited. https://github.com/petehunt/PyMySQL/ is your best option, when it comes to using mysql without C extensions. I don't even know if it works, but it's the only one I could fine. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: why i can't read sda1 with python?

2012-06-04 Thread Corey Richardson
the access to read sda1? You need read privileges. Either change the permissions of /dev/sda1, or run python as root. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: While stack:

2012-06-01 Thread Corey Richardson
://learnpythonthehardway.org/book/ex33.html Simplistic summary: it executes the indented code under the while until stack evaluates to non-True. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: get latest from svn

2012-06-01 Thread Corey Richardson
you could also shell out. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: os.path needs immediate attention!

2011-07-29 Thread Corey Richardson
to os.path.exists, though. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Inconsistencies between zipfile and tarfile APIs

2011-07-22 Thread Corey Richardson
... * for some definition of everyone -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 8 and extraneous whitespace

2011-07-22 Thread Corey Richardson
, if not for any reason besides text is nice and easy to read at that width, and everyone else is doing it. I have no reason to change. I've never desired more characters than that. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln -- http

Re: [PyWart 1001] Inconsistencies between zipfile and tarfile APIs

2011-07-21 Thread Corey Richardson
file objects should. I agree, actually. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Inconsistencies between zipfile and tarfile APIs

2011-07-21 Thread Corey Richardson
Excerpts from rantingrick's message of Fri Jul 22 00:48:37 -0400 2011: On Jul 21, 11:13pm, Corey Richardson kb1...@aim.com wrote: I agree, actually. Maybe i can offer a solution. A NEW module called archive.py (could even be a package!) which exports both the zip and tar file classes

Re: I am fed up with Python GUI toolkits...

2011-07-20 Thread Corey Richardson
please. Allow me. Tkinter sucks because it looks like an enfeebled Motif 1980s dawn-of- GUIs scratchy window with grooves and lines everywhere. Themed Tk (TTK) has come a far way. I'll leave the research for you, however, as I can not give this post the time it deserves. -- Corey

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Corey Richardson
, though. DejaVu Sans Mono isn't the prettiest thing but it certainly gets the job done. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: list(), tuple() should not place at Built-in functions in documentation

2011-07-16 Thread Corey Richardson
is not iterable Which is tons more useful than assert isinstance(f, (list, tuple)) Traceback (most recent call last): File stdin, line 1, in module AssertionError -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description

Re: list(), tuple() should not place at Built-in functions in documentation

2011-07-14 Thread Corey Richardson
, but in the common case they probably aren't desired (I always use Google to search around the python docs). Not to mention that the search is slooo. It's plenty fast on my local download, but I haven't actually looked at the search to see what it does and how. -- Corey Richardson Those who

Re: Function docstring as a local variable

2011-07-10 Thread Corey Richardson
a docstring pass def bar(): ds = I am not a docstring! def baz(): I am a docstring too! pass def qux(): 'And even me! Quote type don't matter (besides style)' pass -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln

Re: Function docstring as a local variable

2011-07-10 Thread Corey Richardson
What does yours do? -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-10 Thread Corey Richardson
new for their newer system, don't remember the name), etc. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Function docstring as a local variable

2011-07-10 Thread Corey Richardson
, thank you for clarifying. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: meaning of numpy.fft coefficients

2011-07-08 Thread Corey Richardson
is the imaginary. Python uses j, 4+5j (4+5j) http://en.wikipedia.org/wiki/Complex_number http://docs.python.org/library/stdtypes.html#typesnumeric -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Corey Richardson
, and it certainly doesn't make the key a control structure. You can pass a key to a sort even in C and that certainly doesn't have user defined control structures. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description

Re: Nested/Sub Extensions in Python

2011-07-01 Thread Corey Richardson
Excerpts from H Linux's message of Fri Jul 01 16:02:15 -0400 2011: Dear all, I am currently fighting with a problem writing a set of Python extensions in C. If you haven't seen it yet, Cython is a *very* nice tool for writing C extensions. http://cython.org/ -- Corey Richardson Those who

Re: // compile python core //

2011-06-26 Thread Corey Richardson
and edit Makefile.pre.in and take out stuff you dont' want. Just make sure you know what you're doing. That said, this was an educated guess, I don't actually know. http://hg.python.org/cpython/file/c5b0585624ef/Makefile.pre.in Best of luck! -- Corey Richardson Those who deny freedom to others

Re: Default value for optional parameters unexpected behaviour?

2011-06-26 Thread Corey Richardson
that object around. The proper idiom instead of def a(foo=[]): ... foo.append(1) ... print foo ... is def a(foo=None): if foo is None: foo = [] foo.append(1) print foo -- Corey Richardson Those who deny freedom to others, deserve it not for themselves

Re: Default value for optional parameters unexpected behaviour?

2011-06-26 Thread Corey Richardson
. -- Corey Richardson Those who deny freedom to others, deserve it not for themselves -- Abraham Lincoln signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 OR 3.2

2011-06-09 Thread Corey Richardson
/moin/Python2orPython3 Pick one and learn it well. It'll be easy to switch to the other when/if you need to. Right now lots of nice libraries only support 2.x, like Twisted and lots of web frameworks (all? I think there's one or two that use 3). - -- Corey Richardson -BEGIN PGP SIGNATURE

Re: announcing: dmangame: an ai game. maybe.

2011-06-06 Thread Corey Richardson
challenge to my brain. Thank you for your work and for sharing. - -- Corey Richardson -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBAgAGBQJN7ILhAAoJEAFAbo/KNFvpFjYH/A+5l58MURNwSkNkRvejcS83 GDCVkq7I9ojqkGdEMi4get4oz0z+TQnZ5PTjHNMpgZvbI+AM6esQ2NPKIUGQd4l5 bk9ZeiA

Re: Python in CS1

2011-05-21 Thread Corey Richardson
onto the edu-sig list. - -- Corey Richardson -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBAgAGBQJN18oPAAoJEAFAbo/KNFvp9MwH/0zXSTTaxAwYPLSxhyirqr3X DUxyulE5HRn+NIarWyomlDfoayip3boyUBG1GQDDKh+sIIzPT9ETfL7+ep9rwkL4 VA7XSDMLu+4DtUlnFjGlfxCz1REYKVvS4m

Re: Python 3.x and bytes

2011-05-17 Thread Corey Richardson
): | bytes(iterable_of_ints) - bytes | bytes(string, encoding[, errors]) - bytes | bytes(bytes_or_buffer) - immutable copy of bytes_or_buffer | bytes(memory_view) - bytes Looks like you're using the fourth when you want the first, possibly? - -- Corey Richardson -BEGIN PGP SIGNATURE

Re: Python 3.x and bytes

2011-05-17 Thread Corey Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/17/2011 04:55 PM, Ethan Furman wrote: Apparently, it's not well documented. If you check PEP 358 you'll find it. ~Ethan~ Agreed, it looks like it should be mentioned in bytes.__doc__ about the single-integer argument. - -- Corey

Re: Proper way to handle errors in a module

2011-05-12 Thread Corey Richardson
' is not defined. I don't know how to define the exception. class HelloError(Exception): pass Of course, there are all sorts of other things you could do with your exception. http://docs.python.org/tutorial/errors.html#user-defined-exceptions - -- Corey Richardson -BEGIN PGP SIGNATURE- Version

Re: using python to post data to a form

2011-04-04 Thread Corey Richardson
.urlopen(request) page = response.read() So yeah, passing in a Request object to urlopen that has some urlencode'ed data in it. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: proposal to allow to set the delimiter in str.format to something other than curly bracket

2011-04-03 Thread Corey Richardson
://docs.python.org/library/string.html#string.Formatter -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

The Magick of __call__ (Or, Digging Deeper Than I Ought To)

2011-04-01 Thread Corey Richardson
for it to be of any use (yes I looked!). Would looking at something such as PyPy's version of it be good for me / does anyone else have insights? -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: popular programs made in python?

2011-03-29 Thread Corey Richardson
extensive Python API that allows you to make scripts that can access any part of the software, or almost any part of it. Just look at http://en.wikipedia.org/wiki/List_of_Python_software It's not a complete list either. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-related Animation Packages?

2011-03-29 Thread Corey Richardson
On 03/29/2011 01:17 PM, Benjamin J. Racine wrote: Hello all, Does anyone know of software that might be of use in an attempt to animate an object undergoing 6-DOF rigid body motions: surge, sway, heave, roll, pitch and yaw? Thanks so much, Ben Racine Blender. -- Corey Richardson

Re: best python games?

2011-03-25 Thread Corey Richardson
as far as i can tell Unknown Horizons is pretty OK, and the upcoming PARPG looks promising (both use the FIFE engine). -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Good literature about python twisted

2011-03-15 Thread Corey Richardson
On 03/15/2011 03:18 PM, gelonida wrote: o it seems another book or some other documentation would be great. Does anyone have recommendations? http://krondo.com/?page_id=1327 -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Tk MouseWheel Support

2011-03-10 Thread Corey Richardson
really not sure though. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Tk MouseWheel Support

2011-03-10 Thread Corey Richardson
On 03/10/2011 03:35 PM, Corey Richardson wrote: Middle button is Button-3 IIRC, and I think it'd be MouseUp and MouseDown. I'm really not sure though. It's Button-2 rather. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: What do I need to know in order to write a web application in python?

2011-03-05 Thread Corey Richardson
. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: having both dynamic and static variables

2011-03-05 Thread Corey Richardson
: When would a functions definition change? What is the difference between a dynamic function and a fixed function? -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: What do I need to know in order to write a web application in python?

2011-03-04 Thread Corey Richardson
Words are your choices, I guess) and learn up on Javascript. That's my take on it, at least. I'm sure someone with more experience could direct you more specifically. Turn-based would be much easier. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: What do I need to know in order to write a web application in python?

2011-03-04 Thread Corey Richardson
you're more familiar with the language compared to the ones you currently know. And then you can try a web app with Django, but I suggest Pyramid instead. -- Corey Richardson [1] - Well, kinda. You could have Django driving the back-end and maybe use AJAX and have the client poll the server

Re: What do I need to know in order to write a web application in python?

2011-03-04 Thread Corey Richardson
/tutorials using it become available. Tkinter is easy to use and comes right in the standard library. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: A Short Question on list

2011-03-03 Thread Corey Richardson
(elemlist, i, 0)) -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Communicating from Flash to Python

2011-03-03 Thread Corey Richardson
a webpage, so are you trying to use Python with the CGI to do this? If so, check out the actionscript thing at [1] and just implement the server page with Python CGI instead of PHP. [1] http://www.actionscript.org/resources/articles/82/1/Send-Email-via-Flash-and-PHP/Page1.html -- Corey Richardson

Re: WxPython versus Tkinter.

2011-03-02 Thread Corey Richardson
? -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Python getting stuck

2011-02-26 Thread Corey Richardson
key combination are you using? My instinctive guess is that you are trying to Ctrl-C to copy something in the interpreter, which actually just raises a KeyboardInterrupt exception. However your additional symptoms seem to indicate otherwise. A more verbose description is needed. -- Corey

Re: jQuery-like sliding container animations for Tkinter?

2011-02-26 Thread Corey Richardson
or grow? My working knowledge of Tkinter tells me that Tkinter's pack and grid layout techniques will not be optimal for the above type of animations. The place geometry manager might suit your needs, but that can be a bit PITA to work with. By can, I mean is. -- Corey Richardson -- http

Re: Newbie...

2011-02-25 Thread Corey Richardson
, it's pretty easy to understand, and looks a hell of a lot clearer than a bunch of chr()'s without any space between. That's just my two cents. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie...

2011-02-25 Thread Corey Richardson
On 02/25/2011 03:39 AM, Corey Richardson wrote: Also, if one understands how a unicode byte looks like in a string, it's pretty easy to understand, and looks a hell of a lot clearer than a bunch of chr()'s without any space between. That's just my two cents. Err..not a unicode byte, but it's

Re: Parsing numeric ranges

2011-02-25 Thread Corey Richardson
]), int(compact_range[1]) + 1) And then looping through your compact notation deciding when it's a range notation and when it's a literal is all you have to do. -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Struggling to convert a mysql datetime object to a python string of a different format

2011-02-24 Thread Corey Richardson
, August 04, 2010 7:40 PM ? wrote: -- Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing binary files in windows

2011-02-11 Thread Corey Richardson
On 02/11/2011 10:20 PM, Abhishek Gulyani wrote: When I write binary files in windows: file = open(r'D:\Data.bin','wb') file.write('Random text') file.close() and then open the file it just shows up as normal text. There is nothing binary about it. Why is that? Sorry if this is too

Re: OO Python

2011-02-09 Thread Corey Richardson
On 02/09/2011 04:50 PM, Paul Symonds wrote: Are there any good resources to learn OO Python from? To my knowledge, all Python is OO. What specifically about OOP do you want to know? http://www.alan-g.me.uk/tutor/tutclass.htm I've always liked Alan's site. Come over to the Tutor list if you

Re: PIL Open Problem

2011-02-07 Thread Corey Richardson
On 02/07/2011 05:27 PM, Richard Holmes wrote: I'm trying to create an image for use in Tkinter. If I understand the PIL documentation correctly, I first need to import Image, then create an instance of the Image class and call 'open' Don't do that. This is wrong: import Image im =

Re: psd estimation no matplotlib

2011-02-05 Thread Corey Richardson
On 02/05/2011 05:19 AM, Jack Yu wrote: Hi all, Is there a function psd() for estimating power spectral density that is not dependent on the importing of matplotlib or pylab [snip] There is not built into Python, but you could rip the function right out of pylab's or matplotlib's source and

P2PU Python Challenges

2011-02-05 Thread Corey Richardson
In my journeys across the face of the Internet, I found this: http://p2pu.org/general/python-challenges Not sure what it's really going to be, but any new programmers/people looking for something to do might be interested. I'm not quite sure how a class can be organised around a web riddle, but

Re: parse GET/POST data on simple http server

2011-02-03 Thread Corey Richardson
On 02/03/2011 03:15 AM, Markus wrote: Hi, As a beginner in python, I am looking for example code that would help me understand how to code following idea: 1. Start minimal http server 2. Send GET or POST data (url encoded, or from form) - example Name=Foo 3. Analyze the GET/POST variable

Re: parse GET/POST data on simple http server

2011-02-03 Thread Corey Richardson
On 02/03/2011 03:15 AM, Markus wrote: Hi, As a beginner in python, I am looking for example code that would help me understand how to code following idea: 1. Start minimal http server 2. Send GET or POST data (url encoded, or from form) - example Name=Foo 3. Analyze the GET/POST variable

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-02 Thread Corey Richardson
On 2/2/2011 2:44 PM, rantingrick wrote: [snip] py flamer_group.append(troll_group.pop(Corey Richardson)) Your moving up Corey. Keep up the good work! I don't recall ever doing anything but injecting my honest opinion. If my opinion may be flawed (or appears to be flawed, I usually don't

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-01 Thread Corey Richardson
On 02/01/2011 03:05 PM, rantingrick wrote: On Feb 1, 1:35 pm, John Nagle na...@animats.com wrote: On 1/31/2011 2:17 PM, Kevin Walzer wrote: It certainly would be interesting to see a fresh approach to IDLE... The future of playing with Python is probably Python in a browser window, of which

Re: how to get and search a html file from a website

2011-02-01 Thread Corey Richardson
On 02/01/2011 04:20 PM, Tracubik wrote: Hi all! i'm writing a notification program and i'm quite new to python. The program have to check every 5 minutes a particular website and alert me when a particular sentence (user online) is in the html. i've thinked to use a text browser (lynx) to

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-01 Thread Corey Richardson
On 02/01/2011 07:42 PM, Robert wrote: On 2011-02-01 10:54:26 -0500, Terry Reedy said: On 2/1/2011 12:13 AM, rantingrick wrote: On Jan 31, 4:17 pm, Kevin Walzerk...@codebykevin.com wrote: Rick, Yes. IDLE is first and foremost a tool to get work done. However we should not ignore the fact

Re: WxPython versus Tkinter.

2011-01-27 Thread Corey Richardson
On 01/27/2011 04:10 PM, rantingrick wrote: On Jan 27, 2:00 pm, Terry Reedy tjre...@udel.edu wrote: On 1/27/2011 12:54 PM, Octavian Rasnita wrote: Everything that's not accessible is not recommended. By you. We get that. Tkinter should be at most accepted because there is no better

Re: WxPython versus Tkinter.

2011-01-27 Thread Corey Richardson
On 01/27/2011 05:08 PM, rantingrick wrote: wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first. -- Guido van Rossum You forgot to put a date on that

Re: WxPython versus Tkinter.

2011-01-27 Thread Corey Richardson
On 01/27/2011 09:53 PM, alex23 wrote: rantingrick rantingr...@gmail.com wrote: You'll need to read that snippet in context to understand what i was talking about. Again, see my tip of the day in my last post to you. Pass. I'd have to see value in what you say inside of the endless

Re: WxPython versus Tkinter.

2011-01-26 Thread Corey Richardson
On 01/26/2011 01:18 AM, Octavian Rasnita wrote: From: rantingrick rantingr...@gmail.com On Jan 25, 3:41 pm, Corey Richardson kb1...@aim.com wrote: Do you honestly think he was talking about the accessibility problem? IMO that should move to another thread, because this one is simply about

Re: WxPython versus Tkinter.

2011-01-25 Thread Corey Richardson
On 01/25/2011 03:55 PM, Octavian Rasnita wrote: this thread was a psy-ops (psychological operations) trick to turn off wxPython adopters by associating it with juvenile nonsense Do you think the need for accessibility is a nonsense? Or do you think it is something juvenile? Octavian

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 05:18 AM, rusi wrote: Tried the code with debian sid and default python (2.6) I get (after some loading... statements) Segmentation fault [Actually this is the first time in my 10 years of python that Ive seen a pure python module segfault :-) ] I also have a segfault. You

Re: A and B but not C in list

2011-01-23 Thread Corey Richardson
On 01/23/2011 04:05 PM, CM wrote: In Python, is there a recommended way to write conditionals of the form: if A and B but not C or D in my list, do something. ? I may also have variations on this, like if A but not B, C, or D. Do I have to just write out all the if and elifs with all

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 05:08 PM, rantingrick wrote: On Jan 23, 3:11 pm, Littlefield, Tylerty...@tysdomain.com wrote: if you can't manage to provide cross-platform bug-free code. No one has posted even one traceback Tyler (including yourself!). And until they do i will assume that my code is bug

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 07:07 PM, rantingrick wrote: On Jan 22, 6:07 pm, rantingrickrantingr...@gmail.com wrote: I await any challengers... WxPython Challenge 1 code updated... * Fixed tab traveral * Removed hand-holding code * Removed some cruft

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 08:25 PM, rantingrick wrote: On Jan 23, 5:44 pm, Martin v. Loewismar...@v.loewis.de wrote: For something as common as displaying a file browser, it should be as simple as this: import gui_toolkit # whichever path = gui_toolkit.select_file() Something like zenity:

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 08:50 PM, rantingrick wrote: On Jan 23, 7:40 pm, Corey Richardsonkb1...@aim.com wrote: Why can't we use a TreeCtrl? If we can't use all our widgets, why can you use all yours? ~Corey Columns Corey, the key word here is columns. One more time...COOLUUUMMMNNN. Is

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 08:28 PM, rantingrick wrote: On Jan 23, 6:30 pm, Corey Richardsonkb1...@aim.com wrote: On 01/23/2011 07:07 PM, rantingrick wrote: On Jan 22, 6:07 pm, rantingrickrantingr...@gmail.comwrote: I await any challengers... WxPython Challenge 1 code updated... * Fixed

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 09:29 PM, rantingrick wrote: On Jan 23, 8:07 pm, Corey Richardsonkb1...@aim.com wrote: because imageIdx is just a dictionary, No, imageIdx is an integer. You're right. imageIdx = self.imageMap[iconname] I confused imageIdx with self.imageMap. But that still doesn't fix my

Re: WxPython versus Tkinter.

2011-01-23 Thread Corey Richardson
On 01/23/2011 09:47 PM, rantingrick wrote: On Jan 22, 6:07 pm, rantingrickrantingr...@gmail.com wrote: I await any challengers... CODE UPDATE: * removed sys.maxint (not sure how it got there?) https://sites.google.com/site/thefutureofpython/home/code-challenges In the example at

Re: Need GUI pop-up to edit a (unicode ?) string

2011-01-22 Thread Corey Richardson
On 01/22/2011 03:22 PM, Rikishi42 wrote: I'm in need for a graphical pop-up that will display a (unicode ?) string in a field, allow the user to change it and return the modified string. Maybe also keep the original one displayed above it. Something like this:

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Corey Richardson
On 01/18/2011 07:53 PM, rantingrick wrote: On Jan 18, 6:23 pm, Adam Skutt ask...@gmail.com wrote: [snip] Adam, it is now evident that your view of the world is, at best, a superficial one. You are shallow and incapable of any coherent abstract reasoning abilities. I genuinely hope this is

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Corey Richardson
On 01/18/2011 08:41 PM, rantingrick wrote: On Jan 18, 7:19 pm, Corey Richardson kb1...@aim.com wrote: I for one am quite pleased with Tkinter up to this point. It allowed me to come in with extremely minimal GUI experience, and make something that worked with minimal effort. It was simple

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Corey Richardson
On 01/18/2011 09:16 PM, rantingrick wrote: On Jan 18, 7:59 pm, Corey Richardson kb1...@aim.com wrote: On 01/18/2011 08:41 PM, rantingrick wrote: From that, it appears we need to: 1. Replace Tkinter with something more modern and feature-complete, but just as easy to use. 2. Add a web

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Corey Richardson
On 01/18/2011 09:46 PM, rantingrick wrote: On Jan 18, 8:27 pm, Corey Richardson kb1...@aim.com wrote: You mentioned having a segment of wxPython in the stdlib earlier. If this actually feasible from a legal standpoint, and would the maintainers of wxPython be willing to put it in the stdlib

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Corey Richardson
On 01/18/2011 10:24 PM, rantingrick wrote: On Jan 18, 9:02 pm, Corey Richardson kb1...@aim.com wrote: If that's what you believe, I don't think many (if any) here have an issue with replacing Tkinter with something that has more features and is just as easy to use. Yea, and you're basing

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Corey Richardson
On 01/18/2011 10:54 PM, Adam Skutt wrote: On Jan 18, 9:27 pm, Corey Richardson kb1...@aim.com wrote: Why would you add in only a part of wxPython, instead of all of it? Is the work to cut it down really an advantage over the size of the full toolkit? From what I just checked, the source

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Corey Richardson
On 01/18/2011 11:15 PM, rantingrick wrote: On Jan 18, 10:10 pm, Corey Richardson kb1...@aim.com wrote: That is a pretty large dependency to rely on, and it is rather undesirable IMO. And what exactly is undesirable? Unless you actually back up your statements with fact they just ring

Re: Regex url

2011-01-15 Thread Corey Richardson
On 01/15/2011 08:48 PM, Jean-Francois wrote: Hi, I try to match the following url with one regex /hello /hello/ /hello/world /hello/world/ world is a variable, I can put toto instead Thanks ! What was the regex you tried, and where did it fail? I'm no re guru, but here's my go

Re: cipher encoding

2011-01-12 Thread Corey Richardson
On 01/12/2011 07:35 PM, Cathy James wrote: Dear all, I hope someone out there can help me. The output string of my code is close to what i need, but i need it 1)printed on one line and 2) reversed #mycode: s= input(Enter message: ) key=1 for letter in s:

Re: cipher encoding

2011-01-12 Thread Corey Richardson
On 01/12/2011 07:39 PM, Corey Richardson wrote: On 01/12/2011 07:35 PM, Cathy James wrote: Dear all, I hope someone out there can help me. The output string of my code is close to what i need, but i need it 1)printed on one line and 2) reversed #mycode: s= input(Enter message

Re: Python use growing fast

2011-01-10 Thread Corey Richardson
On 01/10/2011 10:24 PM, Dan Stromberg wrote: On Mon, Jan 10, 2011 at 5:22 PM, Krzysztof Bieniasz krzysztof.t.bieni...@gmail.com wrote: Also depends on how one defines popularity in the context of programming languages. Tiobe quite clearly states what they mean by the name popularity. Namely

Re: What INI config file module allows lists of duplicate same-named options?

2011-01-09 Thread Corey Richardson
to be a standard enforced by Windows itself, not any an issue with the modules. What exactly are you doing? ~Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: compute the double square...... :(

2011-01-08 Thread Corey Richardson
) count = 0; count = count + 1; if (x == a**2 + b**2): print double square ~Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: student question

2011-01-07 Thread Corey Richardson
does it print nothing? IIRC, iterating through the lines in a file moves the cursor (is that the correct term?) to the end of the file. After the first one, use q_file.seek(0) to go back to the start. I think. ~Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Google Chart API, HTTP POST request format.

2011-01-05 Thread Corey Richardson
change version just for these library's? Should I be learning Python on 3.1? Awesome! [snip] I swapped from 3 to 2.6 a while back, better support for modules, and not really losing much in the way of features. ~Corey Richardson -- http://mail.python.org/mailman/listinfo/python-list

Re: Just Starting in on programming

2011-01-04 Thread Corey Richardson
recommends http://www.greenteapress.com/thinkpython/html/index.html in the topic, and the Python tutorial at http://docs.python.org/tutorial/ is quality, you may learn quite a bit from it. If you have questions, I suggest you look into the tutor mailing list, tu...@python.org ~Corey Richardson -- http