Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Emile van Sebille" On 1/25/2011 3:33 PM rantingrick said... Tkinter is old and in many ways insufficient for 21st century GUIs. We need to decide what should come next. I believe wxPython is our best hope. Wx may not be the best it can be, but it is the best we have at this time. Then

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Emile van Sebille" Are third party installations nonsense? Or should python come with all libraries for all potential applications? And then always keep up with best of breed? Python should not include all the libraries for all the potential applications, but it should promote the to

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "geremy condra" There's a difference between what you say and how you say it. If a friend came up to you and said "give me $100 right now!", you probably wouldn't do it. If the same friend came up to you and said "I know this is a big thing to ask, but I really need $100 and I can't guaran

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Nicholas Devenish" Octavian, we get it - you are on the warpath about accessibility. And this is, in a way, a good thing, because, yes, programmers should in general think more about accessibility when designing their programs. But nobody was ever persuaded to consider a complicated and

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Steven D'Aprano" Quality code is a good thing, but there are people who write good code but are so obnoxious that you wouldn't listen to a word they have to say, and people who are only mediocre or average coders, but are otherwise helpful and friendly. I'm amazed that Rick actually aske

Re: WxPython versus Tkinter.

2011-01-26 Thread Stephen Hansen
On 1/25/11 8:21 PM, Steven D'Aprano wrote: > TL;DR. The shorter version: stop being a dick, and people will treat you > seriously. I actually read the original list, and agreed with every point. But this concise summary spells it out perfectly. Stop being a dick, rick. -- Stephen Hansen

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

2011-01-26 Thread Terry Reedy
On 1/26/2011 2:11 AM, rantingrick wrote: On Jan 26, 12:53 am, Terry Reedy wrote: I only see "self.wait_window(self)" in the Dialog base class and not in SimpleDialog, which is what I though you were talking about. It is the last line of Dialog.__init__. Yes. In the module "tkSimpleDialog"

Re: A and B but not C in list

2011-01-26 Thread Arnaud Delobelle
Terry Reedy writes: > On 1/23/2011 4: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 wri

Syntax help

2011-01-26 Thread sl33k_
How to read syntax like this given in the documentation of python? (Newbie) defparameter ::= parameter ["=" expression] http://docs.python.org/reference/compound_stmts.html#function-definitions -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the right Python executable on Windows

2011-01-26 Thread Geoff Bache
On Tue, Jan 25, 2011 at 3:24 PM, Brian Curtin wrote: > On Tue, Jan 25, 2011 at 04:25, Geoff Bache wrote: >> >> Hi all, >> >> I have a Python process on Windows and would like to start a Python >> subprocess using the same interpreter. I wonder how to go about this? >> >> First, I tried the obviou

Re: trouble installing MySQLdb (cygwin) + Bonus question

2011-01-26 Thread John Nagle
On 1/25/2011 3:51 PM, Matthew Roth wrote: On Jan 25, 6:20 pm, David Robinow wrote: On Tue, Jan 25, 2011 at 5:59 PM, Matthew Roth wrote: On Jan 25, 9:34 pm, John Nagle wrote: ... You can install a MySQL server under Windows, and talk to the server from the Cygwin environment. That's a

Re: WxPython versus Tkinter.

2011-01-26 Thread rusi
On Jan 26, 11:18 am, "Octavian Rasnita" wrote: > From: "rantingrick" > On Jan 25, 3:41 pm, Corey Richardson 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, as the subject suggests

Re: Syntax help

2011-01-26 Thread Steven D'Aprano
On Wed, 26 Jan 2011 00:08:41 -0800, sl33k_ wrote: > How to read syntax like this given in the documentation of python? > (Newbie) > > defparameter ::= parameter ["=" expression] > > http://docs.python.org/reference/compound_stmts.html#function- definitions See here for an explanation: http:

Re: Syntax help

2011-01-26 Thread c...@thansen.de
On 26.01.2011 09:08, sl33k_ wrote: How to read syntax like this given in the documentation of python? (Newbie) defparameter ::= parameter ["=" expression] http://en.wikipedia.org/wiki/Backus-Naur_Form -- http://mail.python.org/mailman/listinfo/python-list

Re: Behaviour-based interface/protocol implementation?

2011-01-26 Thread Alan Franzoni
On Tue, Jan 25, 2011 at 6:48 PM, Terry Reedy wrote: > This is correct! > > print(len(mo)) > TypeError: object of type 'MyObj' has no len() That's interesting. I must admit I was not thinking about special methods in my original post, I used that example just because of Chris response. by the way

Convert XML to SQL

2011-01-26 Thread Johann Spies
I an not a Python newbie but working with xml is new to me. I get data through a soap connection, using suds, and want to convert that to objects which I can use to populate a rather complex database. I have been able to parse the xml using tree = etree.iterparse(infile,events=("start","end")) b

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "rusi" On Jan 26, 11:18 am, "Octavian Rasnita" wrote: From: "rantingrick" On Jan 25, 3:41 pm, Corey Richardson 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, as the subject sug

Re: Convert XML to SQL

2011-01-26 Thread Stefan Behnel
Johann Spies, 26.01.2011 10:07: I an not a Python newbie but working with xml is new to me. I get data through a soap connection, using suds, and want to convert that to objects which I can use to populate a rather complex database. Your problem description is pretty comprehensive in general.

Re: List behaviours with Clustering Algorithm

2011-01-26 Thread Peter Otten
James Ravenscroft wrote: >> > I can't run your code because you didn't make it standalone, > Thanks for the heads up, I've made a simple version of the clusterer > which you can view on pastebin: http://pastebin.com/7HmAkmfj If you have > time to look through my code I would be very grateful! >

Re: Syntax help

2011-01-26 Thread Jean-Michel Pichavant
sl33k_ wrote: How to read syntax like this given in the documentation of python? (Newbie) defparameter ::= parameter ["=" expression] http://docs.python.org/reference/compound_stmts.html#function-definitions Just in case you're about to learn python using these defintions: Nobody's lea

Re: Convert XML to SQL

2011-01-26 Thread Stefan Behnel
Stefan Behnel, 26.01.2011 10:29: Johann Spies, 26.01.2011 10:07: I an not a Python newbie but working with xml is new to me. I get data through a soap connection, using suds, and want to convert that to objects which I can use to populate a rather complex database. Your problem description is

Re: python interpreter

2011-01-26 Thread Dave Angel
On 01/-10/-28163 02:59 PM, nair rajiv wrote: Hi, I was exploring python. I wanted to know more about the python interpreter i.e the technical details of how it has been written. If I am directed to the code that also will be fine. The implementation of python data structures lists, tuples and d

Re: Convert XML to SQL

2011-01-26 Thread Johann Spies
On 26 January 2011 12:51, Stefan Behnel wrote: > > The example you sent me is almost perfect for lxml.objectify. Basically, > you'd do something like this: > > Thank you very much. You have helped me a lot. Regards Johann -- May grace and peace be yours in abundance through the full knowledge

Re: Convert XML to SQL

2011-01-26 Thread Stefan Behnel
Johann Spies, 26.01.2011 13:22: On 26 January 2011 12:51, Stefan Behnel wrote: The example you sent me is almost perfect for lxml.objectify. Basically, you'd do something like this: Thank you very much. You have helped me a lot. You're welcome. If you have any suggestions how to improve the

Re: Syntax help

2011-01-26 Thread Tim Chase
On 01/26/2011 04:05 AM, Jean-Michel Pichavant wrote: How to read syntax like this given in the documentation of python? (Newbie) defparameter ::= parameter ["=" expression] Just in case you're about to learn python using these defintions: Nobody's learning a syntax that way. They are not m

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
>I don't know why you didn't say this before. Comprehention, Octavian. I've made that point multiple times, but your to stuck on talking about how selfish people are. >The other part of the discussion is related to the accessibility and care for >accessibility and that discussion is not nice at

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Littlefield, Tyler" > >I don't know why you didn't say this before. > Comprehention, Octavian. I've made that point multiple times, but your > to stuck on talking about how selfish people are. You didn't say that WxPython can't be used with Python 3. Have you said that? > >The other part

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Littlefield, Tyler" > >I don't know why you didn't say this before. > Comprehention, Octavian. I've made that point multiple times, but your > to stuck on talking about how selfish people are. You didn't say that WxPython doesn't work on Python 3, so I don't know what you are talking abo

Re: WxPython versus Tkinter.

2011-01-26 Thread Emile van Sebille
On 1/25/2011 5:07 PM rantingrick said... On Jan 25, 6:55 pm, Emile van Sebille wrote: Oh, that everyone should blindly accept you as is and without regard for established protocols What protocols? Where is this standard posted? Can you give me a link? I would like to know what is expected of

Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
I have following two python scripts -namelookupWrapper.py -namelookup.py The namelookupWrapper.py takes input of "memberId", "memberName" from CLI and has following code snippet idf = sys.argv[1] namef = sys.argv[2] real_script = "C:\\Splunk\\etc\\apps\\search\\bin\\namelookup.py" r = csv.reader

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
>with JAWS because it is the most used screen reader. Get off your me soapbox. Jaws is not the most used. NVDA is taking over, quite fast, and lots of people have totally switched to mac or Vinux because of the problems with Jaws. It's most used in corporate sektors still maybe, but lots of end

Re: WxPython versus Tkinter.

2011-01-26 Thread Emile van Sebille
On 1/25/2011 10:08 PM Octavian Rasnita said... From: "Emile van Sebille" Why is WxPython ineligible? I think Terry's point was compatibility with python3 -- which wx apparently isn't yet. Emile Well, I didn't know this, and it is a valid reason. This means that it is true that there is no

Re: WxPython versus Tkinter.

2011-01-26 Thread Bryan
On Jan 26, 9:47 am, "Octavian Rasnita" wrote: > I couldn't find the word soapbox in the dictionary so I don't know what it > means. I guess that not the soap + box. > Please be more clear and not talk like the high school kids. http://en.wikipedia.org/wiki/Soapbox -- http://mail.python.org/m

Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread rantingrick
I just installed Python 3,0 on my machine. I cannot use 3.0 exclusively yet however i was interested in just poking around and acquiring a taste if you will. I was happy to find that the new Tkinter module names now follow convention and are placed correctly... example: "tkinter.simpledialog" How

Re: adding "Print" menu in wxPython

2011-01-26 Thread Akand Islam
On Jan 26, 12:54 am, rantingrick wrote: > On Jan 26, 12:19 am, rantingrick wrote: > > Actually i found more cruft. Here is something that would be > acceptable although i had to wrap lines shorter than i normally would > for the sake of Usenet. Who ever wrote that code should be lashed 50 > times

Is it possible to pass CSV Reader Object As Argument to another Python File ??? Options

2011-01-26 Thread Bansilal Haudakari
I have following two python scripts -namelookupWrapper.py -namelookup.py The namelookupWrapper.py takes input of "memberId", "memberName" from CLI and has following code snippet idf = sys.argv[1] namef = sys.argv[2] real_script = "C:\\Splunk\\etc\\apps\\search\\bin\\namelookup.py" r = csv.reader(

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread Emile van Sebille
On 1/26/2011 7:51 AM bansi said... I have following two python scripts -namelookupWrapper.py -namelookup.py The namelookupWrapper.py takes input of "memberId", "memberName" from CLI and has following code snippet idf = sys.argv[1] namef = sys.argv[2] real_script = "C:\\Splunk\\etc\\apps\\searc

open() mode args

2011-01-26 Thread mpnordland
What is the correct file mode to pass to open() when I want to both read and write on the open file? -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-26 Thread Robert Kern
On 1/26/11 10:00 AM, Emile van Sebille wrote: On 1/25/2011 10:08 PM Octavian Rasnita said... From: "Emile van Sebille" Why is WxPython ineligible? I think Terry's point was compatibility with python3 -- which wx apparently isn't yet. Emile Well, I didn't know this, and it is a valid reas

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread Emile van Sebille
On 1/26/2011 8:00 AM rantingrick said... I just installed Python 3,0 on my machine. Try it again on the current release candidate -- http://www.python.org/download/releases/3.2/ -- testing old first release code and reporting on its problems won't get any traction. Verify the problem contin

Re: WxPython versus Tkinter.

2011-01-26 Thread rantingrick
On Jan 22, 6:07 pm, rantingrick wrote: > --- >  Challenge 1: (Simple Directory Viewer) > --- > > Create a simple Directory Viewer GUI. You CANNOT use a treectrl!  The > point of this challenge is to show that Tkinter has no s

Re: open() mode args

2011-01-26 Thread Steven D'Aprano
On Wed, 26 Jan 2011 11:32:03 -0500, mpnordland wrote: > What is the correct file mode to pass to open() when I want to both read > and write on the open file? open("filename", "r+") for text mode, "r+b" for binary mode. If your operating system does not distinguish between the two, you can use e

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread rantingrick
On Jan 26, 10:43 am, Emile van Sebille wrote: > On 1/26/2011 8:00 AM rantingrick said... > > I just installed Python 3,0 on my machine. > > Try it again on the current release candidate > --http://www.python.org/download/releases/3.2/-- testing old first > > Seehttp://docs.python.org/bugs.htmlht

method-to-instance binding, callable generator decorator

2011-01-26 Thread Jack Bates
Am struggling to understand Python method-to-instance binding Anyone know why this example throws a TypeError? > #!/usr/bin/env python > > import functools > > # Take a generator function (i.e. a callable which returns a generator) and > # return a callable which calls .send() > class coroutine

Re: WxPython versus Tkinter.

2011-01-26 Thread Tommy Grav
On Jan 26, 2011, at 10:26 AM, Octavian Rasnita wrote: > You didn't say that WxPython can't be used with Python 3. Have you said that? Some besides Peter pointed this out a few days ago. >>> The other part of the discussion is related to the accessibility and >> care for >accessibility and that

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
On Jan 26, 11:30 am, Emile van Sebille wrote: > On 1/26/2011 7:51 AM bansi said... > > > > > > > I have following two python scripts > > -namelookupWrapper.py > > -namelookup.py > > > The namelookupWrapper.py takes input of "memberId", "memberName" from > > CLI and has following code snippet > > >

Slice lists and extended slicing

2011-01-26 Thread Gerald Britton
I'm looking at extended slicing and wondering when and how to use slice lists: slicing ::= simple_slicing | extended_slicing simple_slicing ::= primary "[" short_slice "]" extended_slicing ::= primary "[" slice_list "]" slice_list ::= slice_item ("," slice_item)* [","] slice_i

Re: open() mode args

2011-01-26 Thread mpnordland
thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: method-to-instance binding, callable generator decorator

2011-01-26 Thread Emile van Sebille
On 1/26/2011 9:04 AM Jack Bates said... Am struggling to understand Python method-to-instance binding Anyone know why this example throws a TypeError? > #!/usr/bin/env python > > import functools > > # Take a generator function (i.e. a callable which returns a generator) and > # return a c

Re: adding "Print" menu in wxPython

2011-01-26 Thread rantingrick
On Jan 26, 10:07 am, Akand Islam wrote: > I really appreciate your cooperation. The codes you have written print > in command window, but I want to print (i.e. a popup window will > appear to select printer in order to print). Please assist me > regarding this. Ok, read on... > I am optimist th

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Robert Kern" > That's not Terry's point. The reasons he's referring to (and stated > previously) > are as follows: > > 1. The license of wxWidgets and wxPython is not as permissive as Python's. > The > Python developers, as a matter of policy, do not want to include code into > the >

Re: Slice lists and extended slicing

2011-01-26 Thread Benjamin Kaplan
On Wed, Jan 26, 2011 at 12:20 PM, Gerald Britton wrote: > I'm looking at extended slicing and wondering when and how to use slice lists: > > slicing          ::=  simple_slicing | extended_slicing > simple_slicing   ::=  primary "[" short_slice "]" > extended_slicing ::=  primary "[" slice_list "]

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Emile van Sebille" ... >> Well, I didn't know this, and it is a valid reason. >> This means that it is true that there is no enough maintainance force to >> keep WxPython updated. >> Did I understand correctly? > > Not at all -- wxPython is an active funded ongoing project. Review the > r

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread Benjamin Kaplan
On Wed, Jan 26, 2011 at 11:53 AM, rantingrick wrote: > On Jan 26, 10:43 am, Emile van Sebille wrote: >> On 1/26/2011 8:00 AM rantingrick said... > >> > I just installed Python 3,0 on my machine. >> >> Try it again on the current release candidate >> --http://www.python.org/download/releases/3.2/

Re: method-to-instance binding, callable generator decorator

2011-01-26 Thread Jean-Michel Pichavant
Jack Bates wrote: Am struggling to understand Python method-to-instance binding Anyone know why this example throws a TypeError? #!/usr/bin/env python import functools # Take a generator function (i.e. a callable which returns a generator) and # return a callable which calls .send() class

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Tommy Grav" >> You didn't say that WxPython can't be used with Python 3. Have you said that? > > Some besides Peter pointed this out a few days ago. I don't remember to have read that. But who knows, maybe I have missed it. Does anyone have that message? > Python 2 is in bug-fix mode a

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "Littlefield, Tyler" > >with JAWS because it is the most used screen reader. > Get off your me soapbox. Jaws is not the most used. NVDA is taking over, > quite fast, and lots of people have totally switched to mac or Vinux Lots of people means an insignifiant percent of users compared wit

Re: Slice lists and extended slicing

2011-01-26 Thread Robert Kern
On 1/26/11 11:20 AM, Gerald Britton wrote: I'm looking at extended slicing and wondering when and how to use slice lists: slicing ::= simple_slicing | extended_slicing simple_slicing ::= primary "[" short_slice "]" extended_slicing ::= primary "[" slice_list "]" slice_list ::

Re: Slice lists and extended slicing

2011-01-26 Thread Chris Rebert
On Wed, Jan 26, 2011 at 9:20 AM, Gerald Britton wrote: > I'm looking at extended slicing and wondering when and how to use slice lists: > > slicing          ::=  simple_slicing | extended_slicing > simple_slicing   ::=  primary "[" short_slice "]" > extended_slicing ::=  primary "[" slice_list "]"

Re: WxPython versus Tkinter.

2011-01-26 Thread rantingrick
On Jan 26, 10:35 am, Robert Kern wrote: > On 1/26/11 10:00 AM, Emile van Sebille wrote: > That's not Terry's point. The reasons he's referring to (and stated > previously) > are as follows: > > 1. The license of wxWidgets and wxPython is not as permissive as Python's. The > Python developers, as

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread Jerry Hill
On Wed, Jan 26, 2011 at 11:53 AM, rantingrick wrote: > Why would i want to waste bandwidth downloading an RC? Can i not just > browse the source online? If I understand what you're asking for, the answer is http://svn.python.org/view . If you're specifically looking for 3.2rc1, then I believe

Re: Slice lists and extended slicing

2011-01-26 Thread Emile van Sebille
On 1/26/2011 9:20 AM Gerald Britton said... I'm looking at extended slicing and wondering when and how to use slice lists: I think the use of the term slice_list below is simply as the content between the encompassing brackets, eg in mylist[1:2:3] slice_list refers to 1:2:3. So, you don't ac

Re: Behaviour-based interface/protocol implementation?

2011-01-26 Thread Daniel Urban
> That's just what I'd like and I suppose can't be currently done with > current ABC, PyProtocols or zope.interface implementations, right? It can. With __instancecheck__ you can override isinstance. It is possible (for example) to write a subclass of abc.ABCMeta, which extends __instancecheck__ t

Re: WxPython versus Tkinter.

2011-01-26 Thread geremy condra
On Tue, Jan 25, 2011 at 11:10 PM, Octavian Rasnita wrote: > From: "geremy condra" >> >> There's a difference between what you say and how you say it. If a >> friend came up to you and said "give me $100 right now!", you probably >> wouldn't do it. If the same friend came up to you and said "I kno

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread Chris Rebert
On Wed, Jan 26, 2011 at 7:51 AM, bansi wrote: > I have following two python scripts > -namelookupWrapper.py > -namelookup.py > > > The namelookupWrapper.py takes input of "memberId", "memberName" from > CLI and has following code snippet > > idf = sys.argv[1] > namef = sys.argv[2] > real_script =

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread Nick Stinemates
> However some things never change it seems and some improvements are > actually a step backwards. The same problems with the unit test in 2.x > got ported to 3.x. And the new SimpleDialog is just more lackluster > code like we've seen before. I was hoping to be amazed, i am > disappointed and disg

Question on Open Project

2011-01-26 Thread Subhabrata
Dear Room, I am a python programmer, from India(New Delhi area), and was in Bangalore for long days. My specialization is Natural Language Processing, -Machine Learning(worked on Naive Bayes, SVM, HMM, CRF). I am looking for some open projects in Python-in Machine Learning/NLP area, preferably fro

Re: WxPython versus Tkinter.

2011-01-26 Thread Robert Kern
On 1/26/11 11:46 AM, Octavian Rasnita wrote: From: "Robert Kern" That's not Terry's point. The reasons he's referring to (and stated previously) are as follows: 1. The license of wxWidgets and wxPython is not as permissive as Python's. The Python developers, as a matter of policy, do not want t

Re: WxPython versus Tkinter.

2011-01-26 Thread Nicholas Devenish
On 26/01/2011 18:19, rantingrick wrote: SUMMARY: We create an abstraction API atop "Robin's WxPython". We include only the API in the stdlib at this time and we keep Tkinter in maintenance. Then over the next few years we start a fresh wxPython project that will be acceptable for the stdlib. Some

Re: WxPython versus Tkinter.

2011-01-26 Thread Robert Kern
On 1/26/11 11:19 AM, Octavian Rasnita wrote: From: "Emile van Sebille" ... Well, I didn't know this, and it is a valid reason. This means that it is true that there is no enough maintainance force to keep WxPython updated. Did I understand correctly? Not at all -- wxPython is an active funded

Re: WxPython versus Tkinter.

2011-01-26 Thread Alexander Kapps
On 26.01.2011 18:04, Octavian Rasnita wrote: From: "Littlefield, Tyler" with JAWS because it is the most used screen reader. Get off your me soapbox. Jaws is not the most used. NVDA is taking over, quite fast, and lots of people have totally switched to mac or Vinux Lots of people means an in

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
It doesn't support a good voice synthesizer like Eloquence or IBM Via voice, but only eSpeak which sounds horrible, it doesn't have a scripting language ready to use as JAWS and Window Eyes do, it doesn't offer the possibility of reading with the mouse cursor as JAWS does with its so called JAW

Re: WxPython versus Tkinter.

2011-01-26 Thread rusi
On Jan 27, 12:02 am, Nicholas Devenish wrote: > > Heck, I am probably wasting my time with this post; but you come across > as genuine in your held central beliefs, and so either serious or the > most dedicated and adept troll I have ever encountered. In the case of > the former, I hold an optimis

Re: WxPython versus Tkinter.

2011-01-26 Thread rantingrick
On Jan 26, 1:02 pm, Nicholas Devenish wrote: > I look forward to reading your PEP and initial design documents, though > I suspect you would need the latter and to get some a decent portion of > work done before it would even be considered as an inclusion into the > standard library. Yes i want

how to read the last line of a huge file???

2011-01-26 Thread Xavier Heruacles
I have do some log processing which is usually huge. The length of each line is variable. How can I get the last line?? Don't tell me to use readlines or something like linecache... -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-26 Thread Stephen Hansen
On 1/26/11 9:19 AM, Octavian Rasnita wrote: > From: "Emile van Sebille" > ... >>> Well, I didn't know this, and it is a valid reason. >>> This means that it is true that there is no enough maintainance force to >>> keep WxPython updated. >>> Did I understand correctly? >> >> Not at all -- wxPython

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread bansi
On Jan 26, 1:31 pm, Chris Rebert wrote: > On Wed, Jan 26, 2011 at 7:51 AM, bansi wrote: > > I have following two python scripts > > -namelookupWrapper.py > > -namelookup.py > > > The namelookupWrapper.py takes input of "memberId", "memberName" from > > CLI and has following code snippet > > > idf

Return Statement

2011-01-26 Thread sl33k_
How does "return True" and "return False" affect the execution of the calling function? -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-26 Thread rantingrick
On Jan 26, 2:07 pm, Stephen Hansen wrote: > And some people have absolutely no need-- no need at all-- for any sort > of GUI programming at all. This group is actually really, really big. Stephen "Strawman" Hansen: If he only had a brain! :-) That is the most obvious straw-man to date in this t

Re: Return Statement

2011-01-26 Thread rantingrick
On Jan 26, 2:26 pm, sl33k_ wrote: > How does "return True" and "return False" affect the execution of the > calling function? >>> def f1(): pass >>> print f1() None >>> def f2(): return >>> print f2() None >>> def f3(): return True >>> print f3() True >>> def f4()

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread rantingrick
On Jan 26, 11:55 am, Benjamin Kaplan wrote: > The code is hosted onhttp://svn.python.org Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread rantingrick
On Jan 26, 11:55 am, Benjamin Kaplan wrote: [...snip...] Well i should have looked before i leaped :) This looks like an old 2.x version. I am looking for the newest version with is renamed to "simpledialog" and contains a new class called "SimpleDialog". Do you know were i can view this module

Re: WxPython versus Tkinter.

2011-01-26 Thread Octavian Rasnita
From: "geremy condra" > At least 40% of my coworkers do not speak English as their native > language. Your problem is not the language. Your problem is your > attitude. The atitude considered nice is just duplicity for convincing others, and I don't like duplicity. I like to know exactly what th

Re: WxPython versus Tkinter.

2011-01-26 Thread Bryan
On Jan 26, 2:37 pm, rantingrick wrote: > On Jan 26, 2:07 pm, Stephen Hansen wrote: > > > And some people have absolutely no need-- no need at all-- for any sort > > of GUI programming at all. This group is actually really, really big. > > Stephen "Strawman" Hansen: If he only had a brain! :-) > >

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

2011-01-26 Thread rantingrick
On Jan 26, 2:11 am, Terry Reedy wrote: > In 3.x, the module is now tk.simpledialog -- all lower case. The purpose > of all lowercase module names is to avoid confusion with upper case > class names. Yes Terry, i found the new module and documented the bugs in a new thread. I am not sure if the b

Re: how to read the last line of a huge file???

2011-01-26 Thread Emile van Sebille
On 1/26/2011 2:59 AM Xavier Heruacles said... I have do some log processing which is usually huge. The length of each line is variable. How can I get the last line?? Don't tell me to use readlines or something like linecache... seek -rw-rw1 autofax mail 1061716366 Jan 26 12:45 au

Re: how to read the last line of a huge file???

2011-01-26 Thread MRAB
On 26/01/2011 10:59, Xavier Heruacles wrote: I have do some log processing which is usually huge. The length of each line is variable. How can I get the last line?? Don't tell me to use readlines or something like linecache... Seek to somewhere near the end and then read use readlines(). If you

Re: Python-list Digest, Vol 88, Issue 69

2011-01-26 Thread willie...@gmail.com
Sent from my LG phone python-list-requ...@python.org wrote: >Send Python-list mailing list submissions to > python-list@python.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list >or, via email, send a message with su

Re: Python-list Digest, Vol 88, Issue 69

2011-01-26 Thread willie...@gmail.com
Sent from my LG phone python-list-requ...@python.org wrote: >Send Python-list mailing list submissions to > python-list@python.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list >or, via email, send a message with su

Re: Python-list Digest, Vol 88, Issue 67

2011-01-26 Thread willie...@gmail.com
Sent from my LG phone python-list-requ...@python.org wrote: >Send Python-list mailing list submissions to > python-list@python.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list >or, via email, send a message with su

Re: Return Statement

2011-01-26 Thread Stephen Hansen
On 1/26/11 12:26 PM, sl33k_ wrote: > How does "return True" and "return False" affect the execution of the > calling function? It doesn't -- the value 'True' or 'False' is simply returned, and assigned to a name if the calling function does so explicitly. But there's no built in affects. If you wa

Re: WxPython versus Tkinter.

2011-01-26 Thread Corey Richardson
On 01/26/2011 01:18 AM, Octavian Rasnita wrote: > From: "rantingrick" > On Jan 25, 3:41 pm, Corey Richardson 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, as the subject suggests,

Re: WxPython versus Tkinter.

2011-01-26 Thread Brendan Simon (eTRIX)
Since it seems the python motto is "Batteries included", then it would seem to me that wxPython is the natural fit as it also has "Batteries included" (e.g. accessibility, native look-n-feel, mature and evolving, can produce simple or complex gui programs, etc, etc). -- Brendan Simon www.etrix

Re: Is it possible to pass CSV Reader Object As Argument to another Python File ???

2011-01-26 Thread Ben Finney
bansi writes: > Thanks Chris. Sorry for mis-communicating, the two python scripts are > dependant in a way that namelookupWrapper.py needs to pass csv record > object to another python script Why have you structured them that way, though? What constraint is keeping you from doing the work in a s

use class factory to set required class variables?

2011-01-26 Thread Alan
I have a class ``A`` that is intentionally incomplete: it has methods that refer to class variables that do not exist. The class ``A`` has several complicated methods, a number of which reference the "missing" class variables. Obviously, I do not directly use ``A``. I have a class factory ``f``` t

Re: Return Statement

2011-01-26 Thread Emile van Sebille
On 1/26/2011 12:26 PM sl33k_ said... How does "return True" and "return False" affect the execution of the calling function? That depends on the calling function. It will control what it does next generally based on the returned value, but it could also simply store the result. def isACu

Re: Return Statement

2011-01-26 Thread Alexander Kapps
On 26.01.2011 21:26, sl33k_ wrote: How does "return True" and "return False" affect the execution of the calling function? If only affects the calling function if you use the return value: def foo(): return True def bar1(): foo() # nothing difference, whether foo() returns True or Fal

Re: use class factory to set required class variables?

2011-01-26 Thread Alan
On Jan 26, 4:37 pm, Alan wrote: > I have a class factory ``f``` that subclasses ``A`` *only* in > order to define the class variables. I suppose it would be clearer to say that `f` *returns* subclasses of `A`. Hopefully that was clear ... Alan Isaac -- http://mail.python.org/mailman/listinfo/p

Re: WxPython versus Tkinter.

2011-01-26 Thread Grant Edwards
On 2011-01-26, Octavian Rasnita wrote: > From: "geremy condra" >> At least 40% of my coworkers do not speak English as their native >> language. Your problem is not the language. Your problem is your >> attitude. > > The atitude considered nice is just duplicity for convincing others, > and I don

replacing lines in a file

2011-01-26 Thread mpnordland
Attached are a config file parser that i'm working on, and a example config file. Basically, what my problem is is in write_config, it should search through the file, and replace the lines with whatever the modified version is, it is also designed to ignore comments. To see my problem (which is

  1   2   >