Re: Does Python 3.1 accept \r\n in compile()?

2010-12-30 Thread jmfauth
On 30 Dez., 00:11, Terry Reedy wrote: > On 12/29/2010 4:06 PM, jmfauth wrote: > > > > > On 29 Dez., 21:14, Terry Reedy  wrote: > >> On 12/29/2010 2:31 PM, Terry Reedy wrote: > > >>> "Changed in version 3.2: Allowed use of Windows and Mac newlines. Also > >>> input in 'exec' mode does not have to e

os.path.isfile and wildcard for directory name

2010-12-30 Thread smainklh
Hi everyone, I'm just beginning to learn python language and i'm trying to do something and i can't figure it out. I want to test if a file exists but my path contain a directory name that differs from a server to another. In shell i would have done something like that : #!/bin/bash mypath=/d

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread Javier Collado
Hello, 2010/12/30 : > How can i do the same thing (wildcard in a directory name) in python please ? You can get the contents of a directory with os.listdir and filter with fnmatch.fnmatch more or less as in the example from the documentation: - import fnmatch import os for f

Re: Removing an attribute from html with Regex

2010-12-30 Thread Stefan Behnel
Selvam, 30.12.2010 08:30: I have some HTML string which I would like to feed to BeautifulSoup. But, One malformed attribute breaks BeautifulSoup. My String Didn't try with BS (and you forgot to say what "breaks" means exactly in your case), but it parses in a somewhat reasonable way w

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread Cameron Simpson
On 30Dec2010 09:36, smain...@free.fr wrote: | I want to test if a file exists but my path contain a directory name that | differs from a server to another. | In shell i would have done something like that : | #!/bin/bash | mypath=/dire*/directory02/ | myfile=filename | myfile=toto | if [ -f $mypat

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread Peter Otten
smain...@free.fr wrote: > I'm just beginning to learn python language and i'm trying to do something > and i can't figure it out. > > I want to test if a file exists but my path contain a directory name that > differs from a server to another. > In shell i would have done something like that : >

Re: Digitally Signing a XML Document (using SHA1+RSA or SHA1+DSA)

2010-12-30 Thread Jorgen Grahn
On Tue, 2010-12-28, Adam Tauno Williams wrote: > On Tue, 2010-12-28 at 03:25 +0530, Anurag Chourasia wrote: >> Hi All, > >> I have a requirement to digitally sign a XML Document using SHA1+RSA >> or SHA1+DSA >> Could someone give me a lead on a library that I can use to fulfill >> this requirement?

Re: Digitally Signing a XML Document (using SHA1+RSA or SHA1+DSA)

2010-12-30 Thread Stefan Behnel
Jorgen Grahn, 30.12.2010 10:41: If you really *do* have a requirement to make the result XML-like and incompatible with anything else, I'm afraid you're on your own Well, there's always xmlsec if you need it. http://www.aleksey.com/xmlsec/ Stefan -- http://mail.python.org/mailman/listinfo/py

Embedding a Python IDE on Windows based Application

2010-12-30 Thread Sathish S
Hi Ppl, I'm trying to use python for a macro recorder. In short I have a windows based application, which has a macro recorder. The macros are captured as a python script and when the script is executed they accomplish the user action done on my application. I've written python scripts that can in

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread smainklh
Hi Cameron, Ok, i'll try that :) Thanks Smaine Selon Cameron Simpson : > On 30Dec2010 09:36, smain...@free.fr wrote: > | I want to test if a file exists but my path contain a directory name that > | differs from a server to another. > | In shell i would have done something like that : > | #!/b

Is there anyway to run JavaScript in python?

2010-12-30 Thread crow
Hi, I'm writing a test tool to simulate Web browser. Is there anyway to run JavaScript in python? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

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

2010-12-30 Thread Adam Skutt
On Dec 29, 7:48 pm, "Octavian Rasnita" wrote: > First, the interface should look exactly as the native interfaces for each > system named, and it should provide the same features, because otherwise the > interface would look strange for all the users on all the operating systems. > And of course

Re: Is there anyway to run JavaScript in python?

2010-12-30 Thread Roy Smith
In article , crow wrote: > Hi, I'm writing a test tool to simulate Web browser. Is there anyway > to run JavaScript in python? Thanks in advance. The answer to the question you asked is, "Probably. You might want to check out SpiderMonkey as a starting point". The answer to the question you

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

2010-12-30 Thread Kevin Walzer
On 12/29/10 6:58 PM, rantingrick wrote: The answer is simple. We need a 100% Python GUI. A GUI coded in Python from top to bottom. A GUI that is cross platform to the big three (Windows, Linux, and Mac). A GUI that not only is easy as Tkinter but also a GUI that can be manipulated by the average

Re: Is there anyway to run JavaScript in python?

2010-12-30 Thread Martin v. Loewis
Am 30.12.2010 14:52, schrieb crow: > Hi, I'm writing a test tool to simulate Web browser. Is there anyway > to run JavaScript in python? Thanks in advance. See PyV8: http://pypi.python.org/pypi/PyV8 Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

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

2010-12-30 Thread rantingrick
On Dec 30, 8:59 am, Kevin Walzer wrote: > On 12/29/10 6:58 PM, rantingrick wrote: > Any GUI framework is going to require at least some heavy lifting in C, > C++ or Objective-C (depending on the platform). A pure-Python approach > to GUI development is technically infeasible. This is a very goo

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

2010-12-30 Thread Hank Fay
On Thursday, December 30, 2010 9:59:09 AM UTC-5, kw wrote: > Any GUI framework is going to require at least some heavy lifting in C, > C++ or Objective-C (depending on the platform). A pure-Python approach > to GUI development is technically infeasible. > > -- > Kevin Walzer > Code by Kevin >

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

2010-12-30 Thread Stefan Behnel
rantingrick, 30.12.2010 00:58: So what should we do? The answer is simple. We need a 100% Python GUI. A GUI coded in Python from top to bottom. A GUI that is cross platform to the big three (Windows, Linux, and Mac). A GUI that not only is easy as Tkinter but also a GUI

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

2010-12-30 Thread Kevin Walzer
On 12/30/10 10:24 AM, rantingrick wrote: On Dec 30, 8:59 am, Kevin Walzer wrote: On 12/29/10 6:58 PM, rantingrick wrote: Any GUI framework is going to require at least some heavy lifting in C, C++ or Objective-C (depending on the platform). A pure-Python approach to GUI development is techni

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

2010-12-30 Thread Kevin Walzer
On 12/30/10 10:28 AM, Hank Fay wrote: On Thursday, December 30, 2010 9:59:09 AM UTC-5, kw wrote: Any GUI framework is going to require at least some heavy lifting in C, C++ or Objective-C (depending on the platform). A pure-Python approach to GUI development is technically infeasible. -- Kevin

Re: How to initialize each multithreading Pool worker with an individual value?

2010-12-30 Thread Aahz
In article , Valery Khamenya wrote: > >However it doesn't look possible to use it to initialize each Pool's >worker with some individual value (I'd wish to be wrong here) > >So, how to initialize each multithreading Pool worker with the >individual values? > >The typical use case might be a conne

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

2010-12-30 Thread Kevin Walzer
On 12/30/10 10:52 AM, Stefan Behnel wrote: rantingrick, 30.12.2010 00:58: So what should we do? The answer is simple. We need a 100% Python GUI. A GUI coded in Python from top to bottom. A GUI that is cross platform to the big three (Windows, Linux, and Mac). A GUI that

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

2010-12-30 Thread rantingrick
On Dec 30, 9:52 am, Stefan Behnel wrote: > I hope you invested as much time into writing this "expose" as you did > searching the web before writing it. And ditto to you. If you would have followed the thread so far, in my second post i said... """However i need to stress that my intention is t

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

2010-12-30 Thread Stefan Behnel
rantingrick, 30.12.2010 17:02: On Dec 30, 9:52 am, Stefan Behnel wrote: I hope you invested as much time into writing this "expose" as you did searching the web before writing it. in my second post i said... """However i need to stress that my intention is towards a 100% Python GUI. Not a bi

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

2010-12-30 Thread python
> These days, Tkinter has pretty much everything that other GUI toolkits have: tree views, multi-column listboxes, plus all the basics, available through the core widget, the themed ttk widgets, or extension packages. ***Today, there's no excuse for developing an ugly Tk GUI--if a new Tk app i

Re: How to initialize each multithreading Pool worker with an individual value?

2010-12-30 Thread Adam Tauno Williams
On Thu, 2010-12-30 at 08:01 -0800, Aahz wrote: > In article , > Valery Khamenya wrote: > >However it doesn't look possible to use it to initialize each Pool's > >worker with some individual value (I'd wish to be wrong here) > >So, how to initialize each multithreading Pool worker with the > >indi

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

2010-12-30 Thread rantingrick
On Dec 30, 9:51 am, Kevin Walzer wrote: > > Tcl is not a domain-specific language for creating GUI's. Tcl is a > full-featured, general-purpose programming language that is a peer to > Python in its capabilities, Anybody can gloat and gush about their favorite programming language however what se

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

2010-12-30 Thread rantingrick
On Dec 30, 10:02 am, Kevin Walzer wrote: > >http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ > This library isn't much different from other Python GUI toolkits--it's > dependent on underlying, rather large, platform-specific > implementations--but it provides an even higher level of abstr

Tkinter accessability options (was Re: Tkinter: The good, the bad, and the ugly!)

2010-12-30 Thread python
Octavian, > Not all the people were happy because the darkness disappeared partially for > some of them and more and more blind people started to use a computer, and > discovered that the Tk interfaces are absolutely inaccessible for them. Might this package help? (I have no experience with thi

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

2010-12-30 Thread Hank Fay
That (the desktop app issue) was the big game-change for me. It looks like a desktop app, it acts like a desktop app, and our enterprise customers would be delighted to a) have no installs to do for fat clients; or b) not have to run a TS or Citrix farm. -- http://mail.python.org/mailma

Re: Tkinter accessability options (was Re: Tkinter: The good, the bad, and the ugly!)

2010-12-30 Thread Octavian Rasnita
From: Subject: Tkinter accessability options (was Re: Tkinter: The good, the bad, and the ugly!) > Octavian, > >> Not all the people were happy because the darkness disappeared partially for >> some of them and more and more blind people started to use a computer, and >> discovered that the

Re: default argument in method

2010-12-30 Thread DevPlayer
There's some_object.some_method.func_defaults and some_function.func_defaults both are a settable attribute. How to set the methods func_defaults? You'd have to have code in _getattribute__(yourmethod) if not __getattr__(yourmethod) def __getattribute__(self, attr): if attr == self.my_method:

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

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 07:24:04 -0800, rantingrick wrote: > Also one could argue that C and Python are very similar. One could also argue that black is white, that diamond is softer than chalk, and that bananas are a type of spaceship. Doesn't make it so. How to add two numbers in C: #include in

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

2010-12-30 Thread Terry Reedy
On 12/30/2010 10:51 AM, Kevin Walzer wrote: In 2010, Tk only lacks two major features common to GUI toolkits: 1. A cross-platform printing API. This is mainly an issue on Windows, which lacks a rich command-line printing framework. The canvas widget can generate PostScript, Uh. 1. Postscript

Re: default argument in method

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 11:26:50 -0800, DevPlayer wrote: > There's some_object.some_method.func_defaults Not quite -- method objects don't expose the function attributes directly. You need some_object.some_method.im_func to get the function object, which then has a func_defaults attribute. > and

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

2010-12-30 Thread Mel
Steven D'Aprano wrote: > On Thu, 30 Dec 2010 07:24:04 -0800, rantingrick wrote: > >> Also one could argue that C and Python are very similar. > > One could also argue that black is white, that diamond is softer than > chalk, and that bananas are a type of spaceship. Doesn't make it so. > > How

OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread harijay
Hi, I am writing some multithreaded code which aims to automate three sequential data processing applications and distribute the processing on my 16GB RAM, 64 bit Ubuntu box running Python 2.6.5 The basic class that orchestrates these jobs use Queue.Queue() to feed the product of the first job int

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Thomas L. Shinnick
At 03:46 PM 12/30/2010, harijay wrote: Hi, I am writing some multithreaded code which aims to automate three sequential data processing applications and distribute the processing on my 16GB RAM, 64 bit Ubuntu box running Python 2.6.5 The basic class that orchestrates these jobs use Queue.Queue()

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

2010-12-30 Thread Kevin Walzer
On 12/30/10 12:36 PM, rantingrick wrote: On Dec 30, 9:51 am, Kevin Walzer wrote: Tcl is not a domain-specific language for creating GUI's. Tcl is a full-featured, general-purpose programming language that is a peer to Python in its capabilities, Anybody can gloat and gush about their favorit

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Terry Reedy
On 12/30/2010 4:46 PM, harijay wrote: "OSError: [Errno 26] Text file busy" error Searching 'errno 26', the third Google response suggests that you are trying to write to a file (especially an executable or shared library?) that is already in use. Perhaps just trying to read when locked will

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

2010-12-30 Thread rantingrick
On Dec 30, 1:51 pm, Steven D'Aprano wrote: > How to add two numbers in C: > > [...snip code example...] > > None of the three are exactly clones of each other, but it seems to me > that Tcl and Python are quite close in spirit, if not syntax. Yes i'll agree to that if you also agree that Python a

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

2010-12-30 Thread rantingrick
On Dec 30, 4:44 pm, Kevin Walzer wrote: > You can build web servers, database tools, FTP clients, test > suite/automation tools, chat clients, and drivers of other CLI tools > with Tcl, just to name a few. Ok, thats swell. But do you have any real examples, links, or some evidence of this? Or ar

Re: Building sys.path at run-time?

2010-12-30 Thread Jon Clements
On Dec 30, 4:24 am, Roy Smith wrote: > In article <87k4irhpoa@benfinney.id.au>, >  Ben Finney wrote: > > > Roy Smith writes: > > > > I've got a problem that I'm sure many people have solved many times. > > > > Our project has a bunch of python scripts > > > A very common problem. The solutio

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

2010-12-30 Thread Arndt Roger Schneider
rantingrick schrieb: On Dec 29, 6:41 pm, Gerry Reno wrote: wxPython looks good but I don't see anyone developing support for things like smartphones. No wx is not the answer to our problems Rather: ... to *your* problem... Also, what do you think about frameworks such as pyjamas? It

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread harijay
I am writing to a unique script file . Each script file has prefixes like script1.sh script2.sh and they reside in different directories . The scripts will never trample each other since they are all sequential and shell scripts and no directory will have more than one shell script. The only thing

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

2010-12-30 Thread Kevin Walzer
On 12/30/10 6:17 PM, rantingrick wrote: Ok, thats swell. But do you have any real examples, links, or some evidence of this? Or are we witnessing more wishful thinking? http://tcl.apache.org/rivet/ http://www.amsn-project.net/ http://thecoccinella.org/ http://personal5.iddeo.es/andresgarci/tcl

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

2010-12-30 Thread Robert
On 2010-12-30 13:04:19 -0500, rantingrick said: On Dec 30, 10:02 am, Kevin Walzer wrote: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This library isn't much different from other Python GUI toolkits--it's dependent on underlying, rather large, platform-specific implementations--

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

2010-12-30 Thread Robert
On 2010-12-30 11:02:46 -0500, rantingrick said: On Dec 30, 9:52 am, Stefan Behnel wrote: I hope you invested as much time into writing this "expose" as you did searching the web before writing it. And ditto to you. If you would have followed the thread so far, in my second post i said... "

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

2010-12-30 Thread Robert
On 2010-12-30 18:12:21 -0500, rantingrick said: On Dec 30, 1:51 pm, Steven D'Aprano wrote: How to add two numbers in C: [...snip code example...] None of the three are exactly clones of each other, but it seems to me that Tcl and Python are quite close in spirit, if not syntax. Yes i'll ag

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

2010-12-30 Thread rantingrick
On Dec 30, 6:32 pm, Robert wrote: > Exactly how is Tcl too limited in your view? Well Robert if have explain to you why C and Python make Tcl look limited by comparison then explaining will probably do neither of us any good. But if you think Tcl is so great by all means go spend the next couple

Re: using python ftp

2010-12-30 Thread Stefan Schwarzer
Hello Matt, On 2010-12-23 01:03, Matt Funk wrote: > i was wondering whether someone can point me whether the following > already exists. > > I want to connect to a server , download various files (for whose name i > want to be able to use a wildcard), and store those files in a given > location o

Re: Catching user switching and getting current active user from root on linux

2010-12-30 Thread Aahz
In article , mpnordland wrote: > >First, to pacify those who hate google groups: What is a good usenet >client? trn3.6 ;-) -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "Think of it as evolution in action." --Tony Rand -- http://mail.python.org/mailman/lis

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

2010-12-30 Thread Gerry Reno
For those that are lurking, this might provide a little background: http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong Essentially, there is nothing "wrong" with Tcl and Tkinter. They are part of a long evolutionary chain of how we got to where we are today. They deserve to

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

2010-12-30 Thread Katie T
On Thu, Dec 30, 2010 at 12:15 AM, rantingrick wrote: > > However i need to stress that my intention is towards a 100% Python > GUI. Not a binding, not a wrapping (except for OS calls!) but a *real* > Python GUI. The only thing that i know of at this point is pyGUI > although there are probably oth

Management careers.

2010-12-30 Thread gaurav
Big chance in Management careers. Careers recruitment in Management work. http://topcareer.webs.com/executivemanager.htm http://topcareer.webs.com/executivemanager.htm Government Jobs in site lot of opportunities for graduates. http://rojgars1.webs.com/gov.htm http://printmediajobs.webs.com/fl.htm

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

2010-12-30 Thread Robert
On 2010-12-30 19:43:21 -0500, Gerry Reno said: For those that are lurking, this might provide a little background: http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong Essentially, there is nothing "wrong" with Tcl and Tkinter. They are part of a long evolutionary chain of

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

2010-12-30 Thread Robert
On 2010-12-30 19:46:24 -0500, rantingrick said: On Dec 30, 6:32 pm, Robert wrote: Exactly how is Tcl too limited in your view? Well Robert if have explain to you why C and Python make Tcl look limited by comparison then explaining will probably do neither of us any good. But if you think Tcl

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 13:46:35 -0800, harijay wrote: [...] > But I get the same "OSError: [Errno 26] Text file busy" error > > Everytime I run the same job queue a different part of the job fails. > > Unfortunately I dont see anybody else reporting this OSError. ANy help > in troubleshooting my "

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

2010-12-30 Thread rantingrick
On Dec 30, 6:43 pm, Gerry Reno wrote: > For those that are lurking, this might provide a little background: > >    http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong That was a great and thought provoking article Gerry. Thanks! -- http://mail.python.org/mailman/listinfo/python-l

Career in IT and management

2010-12-30 Thread gaurav
Latest job listing with IT manager job search and government jobs http://topcareer.webs.com/itmanagement.htm Are you looking for a job in government, this is the right place to start. http://rojgars1.webs.com/gov.htm http://printmediajobs.webs.com/fl.htm -- http://mail.python.org/mailman/listinf

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

2010-12-30 Thread rantingrick
On Dec 30, 7:54 pm, Katie T wrote: > It's very hard to write a good gui framework, very very few people > have managed to do it well. This is a very good point Katie. Creating a Python GUI is a huge undertaking and it will take much time to work out the bugs. A truly Pythonic GUI may be (i must

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

2010-12-30 Thread rantingrick
On Dec 30, 8:41 pm, Robert wrote: > On 2010-12-30 19:46:24 -0500, rantingrick said: > Just to clarify...I like Python. I am learning it at the moment. Glad to have you aboard Robert! > > 3. What is your opinion of Tkinter as to it's usefulness within the > > stdlib? > > No, I really don't see t

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

2010-12-30 Thread Gerry Reno
On 12/30/2010 10:28 PM, rantingrick wrote: > > Hmm, wxPython is starting to look like the answer to all our problems. > WxPython already has an IDE so there is no need to rewrite IDLE > completely. What do we have to loose by integrating wx into the > stdlib, really? > > In the spirit of "batte

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

2010-12-30 Thread Robert
On 2010-12-30 22:06:57 -0500, rantingrick said: What is your opinion (or anyone) on wxPython? Ok, I am curious again. Have you even tried wxPython or PySide/PyQt? -- Robert -- http://mail.python.org/mailman/listinfo/python-list

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

2010-12-30 Thread Robert
On 2010-12-30 22:44:52 -0500, Gerry Reno said: On 12/30/2010 10:28 PM, rantingrick wrote: Hmm, wxPython is starting to look like the answer to all our problems. WxPython already has an IDE so there is no need to rewrite IDLE completely. What do we have to loose by integrating wx into the stdli

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

2010-12-30 Thread Robert
On 2010-12-30 22:28:39 -0500, rantingrick said: On Dec 30, 8:41 pm, Robert wrote: On 2010-12-30 19:46:24 -0500, rantingrick said: Just to clarify...I like Python. I am learning it at the moment. Glad to have you aboard Robert! Thanks! 3. What is your opinion of Tkinter as to it's usef

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

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 23:04:33 -0500, Robert wrote: > The > second way the Tcl community irks me is the "not invented here" > attitude. I like the syntax of Tcl and I like the community. They are > some good folks. Try asking "I want to build a Nagios clone in Tcl" type > question and invariably you

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

2010-12-30 Thread rantingrick
On Dec 30, 9:44 pm, Gerry Reno wrote: > In the spirit of "batteries included", Python needs to have "something" > in the stdlib as far as gui.  But it cannot be overwhelming. Agreed! > The problem with wx is that it is BIG.  And so if we want something like > wx to be in the stdlib then it woul

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

2010-12-30 Thread rantingrick
On Dec 30, 9:51 pm, Robert wrote: > Ok, I am curious again. Have you even tried wxPython or PySide/PyQt? Yes i have used wxPython on a few projects and was very happy with the feature rich nature of it. I found previously (with Tkinter) i would have to build my own compound widgets due to non-exi

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

2010-12-30 Thread Adam Skutt
On Dec 30, 11:24 pm, rantingrick wrote: > > > The problem with wx is that it is BIG.  And so if we want something like > > wx to be in the stdlib then it would have to be refactored so that there > > was a small basic wx that was part of stdlib and then import > > wx-the-whole-enchilada if you nee

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

2010-12-30 Thread rantingrick
On Dec 30, 10:04 pm, Robert wrote: > wxPython is really good. The downside is that is shows (or did show) > its C++ roots. Well i will admit the api is not as simplistic as Tkinter. However i noticed over time that wx had started adopting a slight Tkinter "feel" to the API and that is a good thi

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

2010-12-30 Thread rantingrick
On Dec 30, 10:41 pm, Adam Skutt wrote: > On Dec 30, 11:24 pm, rantingrick wrote: > > Exactly! All we need to do is replace the existing Tkinter with a > > small sub-set of wxPython widgets that mirrors exactly what we have > > now... > > > Toplevel > > Label > > Entry > > Button > > Radiobutton >

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Nobody
On Thu, 30 Dec 2010 13:46:35 -0800, harijay wrote: > Each Thread receives a dynamically generated shell script from some > classes I wrote and then runs the script using > > subprocess.call(["shell_script_file.sh"]) > But I get the same "OSError: [Errno 26] Text file busy" error "Text file bus

Change in scope of handled exception variable in Python 3?

2010-12-30 Thread Baptiste Lepilleur
Hi, I stumbled on a small bug with httplib2 that I reduced to the example below. It seems that with Python 3, when an exception is handled it "unbound" the previously declared local variable. This did not occurs with Python 2.5. It is a Python 3 feature? I did not find anything in the what's news

Python3 Web Framework

2010-12-30 Thread Aman
Hey all... I just started with Python, and I chose Python3 because it seemed a subtle choice as compared to doing Pthon 2.x now and then porting to Python3.x later... I plan to start with Web Development soon... I wanted to know what all web frameworks are available for Python3... I heard the Djang

Put up or shut up (Was Re: Tkinter: The good, the bad, and the ugly!)

2010-12-30 Thread Owen Jacobson
On 2010-12-30 12:36:05 -0500, rantingrick said: On Dec 30, 9:51 am, Kevin Walzer wrote: Tcl is not a domain-specific language for creating GUI's. Tcl is a full-featured, general-purpose programming language that is a peer to Python in its capabilities, Anybody can gloat and gush about their