ANN: EPD 6.2 released

2010-06-09 Thread Ilan Schnell
Hello, I am pleased to announce that EPD (Enthought Python Distribution) version 6.2 has been released. This release includes an update to Python 2.6.5, SciPy 0.8.0beta1, as well updates to many other packages and bug fixes. You can find a complete list of updates in the change log:

Re: Syntax problem - cannot solve it by myself

2010-06-09 Thread Steven D'Aprano
On Wed, 09 Jun 2010 02:45:36 +, Deadly Dirk wrote: On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: Unless you have a clear need for 3rd party libraries that currently don't have 3.x versions, starting with Python 3 isn't a bad idea. From what I see, most of the people are still

Re: GUIs - A Modest Proposal

2010-06-09 Thread Steven D'Aprano
On Tue, 08 Jun 2010 16:58:26 -0700, rantingrick wrote: We have a problem You keep saying that, but you've given no good reasons for why we should believe you, or what the nature of this problem supposedly is. The current situation has broad community support: there's a relatively

Re: GUIs - A Modest Proposal

2010-06-09 Thread Robert Kern
On 6/9/10 1:12 AM, rantingrick wrote: On Jun 8, 10:09 pm, Robert Kernrobert.k...@gmail.com wrote: It means that he, very charitably, gives new irritants the benefit of the doubt. By changing identities, you are abusing this good behavior. By connecting your identity to the previous one, his

Re: GUIs - A Modest Proposal

2010-06-09 Thread geremy condra
On Wed, Jun 9, 2010 at 2:12 AM, Robert Kern robert.k...@gmail.com wrote: On 6/9/10 1:12 AM, rantingrick wrote: snip But you know i think it boils down to fear really. He is comfortable in his life and wishes to keep it as cookie cutter as he can. Any outside influence must be quashed before

Re: GUIs - A Modest Proposal

2010-06-09 Thread Gregory Ewing
Kevin Walzer wrote: PyGUI ... certainly is *not* a lightweight GUI toolkit that could easily be incorporated into the Python core library--it instead has rather complex dependencies on both other GUI toolkits and Python wrappers of those toolkits. I don't see how the dependencies could be

Re: why any( ) instead of firsttrue( ) ?

2010-06-09 Thread Raymond Hettinger
On Jun 8, 2:16 pm, danieldelay danielde...@gmail.com wrote:    def firsttrue(iterable):      for element in iterable:          if element:              return element      return None This function firsttrue( ) could probably be used anywhere any( ) is used, but with the ability to

Re: Python-list Digest, Vol 81, Issue 63

2010-06-09 Thread madhuri vio
import tkinter root = tkinter.Tk() #initialize tkinter and get a top level instance root.title(madhuri is a python) canvas = tkinter.Canvas(root) #creating the canvas under the root canvas.pack() #to call the packer geometry canvas.create_rectangle(20,10,120,80,fill=colors[0]) root.close()

Re: Python-list Digest, Vol 81, Issue 63

2010-06-09 Thread madhuri vio
: import tkinter root = tkinter.Tk() #initialize tkinter and get a top level instance root.title(madhuri is a python) canvas = tkinter.Canvas(root) #creating the canvas under the root canvas.pack() #to call the packer geometry canvas.create_rectangle(20,10,120,80,fill=colors[0])

Re: GUIs - A Modest Proposal

2010-06-09 Thread Gregory Ewing
Martin P. Hellwig wrote: I do think it is technically possible to have your own window manager in python on x11 but I have no idea if you have equal possibilities on mac and windows (for example to define your own window decoration). Though considering tk does just that I would guess this to

Re: Python-list Digest, Vol 81, Issue 63

2010-06-09 Thread Chris Rebert
On Tue, Jun 8, 2010 at 11:57 PM, madhuri vio madhuri@gmail.com wrote: import tkinter root = tkinter.Tk() #initialize tkinter and get a top level instance root.title(madhuri is a python) canvas = tkinter.Canvas(root) #creating the canvas under the root canvas.pack() #to call the packer

help me

2010-06-09 Thread madhuri vio
this is the code i have written ..even after changing d module name i am still getting the same error... what do they mean by an attribute error...can u explain in detail i am unable to proceed further... #!usr/bin/env python #making structured graphics using tkinter interface import tkinter

Re: help me

2010-06-09 Thread Chris Rebert
On Wed, Jun 9, 2010 at 12:18 AM, madhuri vio madhuri@gmail.com wrote: this is the code i have written ..even after changing d module name i am still getting the same error... You still haven't renamed /home/manoj/tkinter.py to something else. Otherwise it wouldn't still be mentioned in the

sir

2010-06-09 Thread madhuri vio
i am sorry for using such a word urgent...its just that i am unable to progress and i have u as the only source of help... i was wondering how to rename the module i renamed it to madhu.py -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

FREE Just ONE Click To Obtain Success With Click2Sell.

2010-06-09 Thread maehca2
# All That Which Is Stated Here Is Completely Honest And AbsolutelyFREE # Click2Sell Affiliate Marketing Network will be a valuable support for your business and can help you to become a successful Internet marketer or to become one of the top most successful affiliates in the world. Whether

Python scripting in Ultraspider web crawler?

2010-06-09 Thread Mickel Grönroos
Hi there! Does anybody on the list have experience on processing output from the Ultraspider web crawler with Python? I am using the Ultraspider web crawler to crawl a web site and then send the web pages' content and metadata to an Autonomy IDOL search engine. However, I want to do some

Java Developer with Chordiant, Hyderabad

2010-06-09 Thread Sravanti V
Greetings! Hi , Very Good Day, Currently one of my client, CMM Level 5 company is looking for Java Developer with Chordiant 2 -5 Years of experience. Title: Java Developer with Chordiant Location: Hyderabad, India Qualifications : B.E/BTech/MTech/ MCA Experience : 2-5yrs relevant Preference

sir

2010-06-09 Thread madhuri vio
url[, data[, timeout]) in this format of passing arguments i dint understand d syntax...d comma is coming immediately after the bracket...dint get it.. -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

sir

2010-06-09 Thread madhuri vio
i am working on linux sir #!usr/bin/env python #making structured graphics using tkinter interface import tkinter a = tkinter.Tk() #initialize tkinter and get a top level instance a.title(madhuri is a python) canvas = tkinter.Canvas(a)

Re: GUIs - A Modest Proposal

2010-06-09 Thread Gregory Ewing
Lie Ryan wrote: Much like regex a DSL for matching text, Tcl/Tk is pretty much a DSL for creating GUI I can't see any things about the tcl language that make it especially good for describing GUIs, and even if there were such things, Tkinter pretty much hides the existence of tcl completely,

Re: Non Sequitur: Re: Python Forum

2010-06-09 Thread Gregory Ewing
rantingrick wrote: I ate three fishes just sounds wrong to me. What's the plural of sheep Stephen :-D It's sheepses, isn't it? Am I missing something? -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 3:18 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: I can't see any things about the tcl language that make it especially good for describing GUIs, And neither can i. And thats because Tcl's syntax is great for obfuscation and really nothing more. Anyone who thinks differently

Re: GUIs - A Modest Proposal

2010-06-09 Thread Lie Ryan
On 06/09/10 08:20, Martin P. Hellwig wrote: However I don't think that x11 represents that majority (just a gut feeling I have no data to back this claim up) of gui users, so an equal solution should be found for windows and macs. I do think it is technically possible to have your own

Re: Non Sequitur: Re: Python Forum

2010-06-09 Thread geremy condra
On Wed, Jun 9, 2010 at 1:19 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: rantingrick wrote: I ate three fishes just sounds wrong to me. What's the plural of sheep Stephen :-D It's sheepses, isn't it? Am I missing something? Shyp. Pronounced the same way, just spelled differently.

sir

2010-06-09 Thread madhuri vio
sir i am wanted to know more in detail about expressions ..if u can give an abstract idea... -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

pprint

2010-06-09 Thread madhuri vio
sir what is the function of pprint??? could you please help me out with that -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
Hi, If this is the wrong place for Tkinter in python please direct me elsewhere! I'm trapping mouse clicks using canvas.bind(ButtonRelease-1, mouse_clik_event) def mouse_clik_event (event) : stuff What mouse_clik_event does is modify some data and trigger a redraw. Is there any way to

Re: GUIs - A Modest Proposal

2010-06-09 Thread Chris Rebert
On Wed, Jun 9, 2010 at 1:45 AM, Lie Ryan lie.1...@gmail.com wrote: On 06/09/10 08:20, Martin P. Hellwig wrote: However I don't think that x11 represents that majority (just a gut feeling I have no data to back this claim up) of gui users, so an equal solution should be found for windows and

Re: help me

2010-06-09 Thread Dave Angel
madhuri vio wrote: this is the code i have written ..even after changing d module name i am still getting the same error... what do they mean by an attribute error...can u explain in detail i am unable to proceed further... #!usr/bin/env python #making structured graphics using tkinter

Re: GUIs - A Modest Proposal

2010-06-09 Thread Adam Tauno Williams
On Tue, 2010-06-08 at 18:49 -0700, geremy condra wrote: On Tue, Jun 8, 2010 at 6:20 PM, Adam Tauno Williams awill...@whitemice.org wrote: On Tue, 2010-06-08 at 18:12 -0700, geremy condra wrote: * IronPython relies on the .Net environment for everything Since .Net (effectively) depends on

Re: passing data to Tkinter call backs

2010-06-09 Thread Bruno Desthuilliers
Nick Keighley a écrit : Hi, If this is the wrong place for Tkinter in python please direct me elsewhere! I'm trapping mouse clicks using canvas.bind(ButtonRelease-1, mouse_clik_event) def mouse_clik_event (event) : stuff What mouse_clik_event does is modify some data and trigger a

Re: function that counts...

2010-06-09 Thread Albert van der Horst
In article l3172q@spenarnc.xs4all.nl, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article 4bf442cd$0$31377$4fafb...@reader1.news.tin.it, superpollo ute...@esempio.net wrote: ... how many positive integers less than n have digits that sum up to m: In [197]: def prttn(m, n):

Re: optparse: best way

2010-06-09 Thread hiral
On Jun 8, 3:03 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: hiralwrote: Hi, I am using optparser to do following... Command syntax: myscript -o[exension] other_arguments     where; extension can be 'exe', 'txt', 'pdf', 'ppt' etc. Now to parse this, I am doing

Re: optparse: best way

2010-06-09 Thread hiral
On Jun 8, 4:30 pm, Hrvoje Niksic hnik...@xemacs.org wrote: Thomas Jollans tho...@jollans.com writes: UNIX and GNU recommendations. I've never actually heard of optparser, but I'd expect it to have the usual limitations: Hiralprobably meant to write optparse, which supports GNU-style

Re: GUIs - A Modest Proposal

2010-06-09 Thread geremy condra
On Wed, Jun 9, 2010 at 2:38 AM, Adam Tauno Williams awill...@whitemice.org wrote: On Tue, 2010-06-08 at 18:49 -0700, geremy condra wrote: On Tue, Jun 8, 2010 at 6:20 PM, Adam Tauno Williams awill...@whitemice.org wrote: On Tue, 2010-06-08 at 18:12 -0700, geremy condra wrote: * IronPython

Re: passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
On 9 June, 10:35, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Nick Keighley a crit : I'm trapping mouse clicks using canvas.bind(ButtonRelease-1, mouse_clik_event) def mouse_clik_event (event) :      stuff What mouse_clik_event does is modify some data and

Re: help me

2010-06-09 Thread Dave Angel
Note, I said REPLY-ALL'. By default a simple reply goes to the individual, and not to the list. Make sure python-list@python.org is in your TO: list. I'm sending this back to the list, with my remarks at the end, since top-posting is inconsistent and confusing. madhuri vio wrote: yea i

Re: optparse: best way

2010-06-09 Thread Jean-Michel Pichavant
hiral wrote: On Jun 8, 3:03 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: hiralwrote: Hi, I am using optparser to do following... Command syntax: myscript -o[exension] other_arguments where; extension can be 'exe', 'txt', 'pdf', 'ppt' etc. Now to

Re: Replace in large text file ?

2010-06-09 Thread hiral
On Jun 6, 7:27 am, Steve vvw...@googlemail.com wrote: On 5 June, 08:53, Steve vvw...@googlemail.com wrote: I am new to Python and am wanting  to replace characters in a very large text file.6 GB In plain language what I wish to do is: Remove all comma's Replace all @ with comma's

Re: help me

2010-06-09 Thread madhuri vio
1)2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] 2) import sys print sys.path ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',

Re: help me

2010-06-09 Thread Chris Rebert
On Wed, Jun 9, 2010 at 3:37 PM, Dave Angel da...@ieee.org wrote: Note, I said REPLY-ALL'.  By default a simple reply goes to the individual, and not to the list.  Make sure python-list@python.org is in your TO: list.  I'm sending this back to the list, with my remarks at the end, since

Re: help me

2010-06-09 Thread Dave Angel
madhuri vio wrote: 1)2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] So you've got the wrong name for Tkinter. In version 2.x, you need import Tkinter 2) import sys print sys.path ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',

The Python computer language.

2010-06-09 Thread Open
http://123maza.com/25/rani481/ -- http://mail.python.org/mailman/listinfo/python-list

Re: help me

2010-06-09 Thread madhuri vio
thankyou so much ..i made it finally... how do i make buttons and i want a lil text to label the buttons also On Wed, Jun 9, 2010 at 4:07 PM, Chris Rebert c...@rebertia.com wrote: On Wed, Jun 9, 2010 at 3:37 PM, Dave Angel da...@ieee.org wrote: Note, I said REPLY-ALL'. By default a simple

Re: help me

2010-06-09 Thread madhuri vio
yea i was able to import by capitalizing t...thank u so much but wats the reason behind they just changed it for the significance of each version ..is it that way? On Wed, Jun 9, 2010 at 4:09 PM, Dave Angel da...@ieee.org wrote: madhuri vio wrote: 1)2.6.2 (release26-maint, Apr 19 2009,

Re: help me

2010-06-09 Thread Chris Rebert
On Wed, Jun 9, 2010 at 4:07 PM, Chris Rebert c...@rebertia.com wrote: On Wed, Jun 9, 2010 at 3:37 PM, Dave Angel da...@ieee.org wrote: Note, I said REPLY-ALL'.  By default a simple reply goes to the individual, and not to the list.  Make sure python-list@python.org is in your TO: list.  

Re: Replace in large text file ?

2010-06-09 Thread Tim Chase
On 06/09/2010 05:27 AM, hiral wrote: On Jun 6, 7:27 am, Stevevvw...@googlemail.com wrote: On 5 June, 08:53, Stevevvw...@googlemail.com wrote: Remove all comma's Replace all @ with comma's Save as a new file. Many thanks for your suggestions. sed -i 's/Hello/hello/g' file Run twice on the

Re: help me

2010-06-09 Thread Simon Brunning
On 9 June 2010 11:44, madhuri vio madhuri@gmail.com wrote: thankyou so much ..i made it finally... how do i make buttons and i want a lil text to label the buttons also You might want to run through http://www.pythonware.com/library/tkinter/introduction/. -- Cheers, Simon B. --

Re: help me

2010-06-09 Thread Dave Angel
You're still top-posting. Put your response either directly after the part you're responding to, or at the end. And of course, trim out the irrelevant parts (which I've been frequently criticized for failing to do) madhuri vio wrote: yea i was able to import by capitalizing t...thank u so

Re: help me

2010-06-09 Thread Simon Brunning
On 9 June 2010 11:47, madhuri vio madhuri@gmail.com wrote: yea i was able to import by capitalizing t...thank u so much but wats the reason behind they just changed it for the significance of each version ..is it that way? PEP 8 (http://www.python.org/dev/peps/pep-0008/) suggests that

Re: GUIs - A Modest Proposal

2010-06-09 Thread ant
Since I started this thread, I feel a sense of responsibility for it, in some bizarre way. Not to prolong its existence, which is clearly a troubling one for some, but to try to steer it towards some kind of consensus that will irritate the least number of people. Or better, that will gain some

Re: GUIs - A Modest Proposal

2010-06-09 Thread Adam Tauno Williams
On Wed, 2010-06-09 at 04:16 -0700, ant wrote: Since I started this thread, I feel a sense of responsibility for it, in some bizarre way. Not to prolong its existence, which is clearly a troubling one for some, but to try to steer it towards some kind of consensus that will irritate the least

Re: Syntax problem - cannot solve it by myself

2010-06-09 Thread Jorgen Grahn
On Wed, 2010-06-09, Deadly Dirk wrote: On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: Unless you have a clear need for 3rd party libraries that currently don't have 3.x versions, starting with Python 3 isn't a bad idea. But see below. From what I see, most of the people are still using

Re: Python + vim + spaces vs tab

2010-06-09 Thread Jean-Michel Pichavant
Robin Becker wrote: On 07/06/2010 22:18, Hans Mulder wrote: Jean-Michel Pichavant wrote: Hello, Does anyone knows a way to configure vim so it automatically select to correct expandtab value depending on the current buffer 'way of doing' ? I need to edit different files, some are using

Re: GUIs - A Modest Proposal

2010-06-09 Thread Jean-Michel Pichavant
ant wrote: Most of those don't use a GUI. But whenever I write a program that someone else is going to use, it has to have a GUI. Is that not true for most people? In the industry, most of the people knows how to use a comand line. In my company, 99% of the applications written in

Re: Python + vim + spaces vs tab

2010-06-09 Thread Jorgen Grahn
On Mon, 2010-06-07, Neil Cerutti wrote: On 2010-06-07, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Hello, Does anyone knows a way to configure vim so it automatically select to correct expandtab value depending on the current buffer 'way of doing' ? I need to edit different files,

Re: passing data to Tkinter call backs

2010-06-09 Thread Bruno Desthuilliers
Nick Keighley a écrit : On 9 June, 10:35, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Nick Keighley a crit : I'm trapping mouse clicks using canvas.bind(ButtonRelease-1, mouse_clik_event) def mouse_clik_event (event) : stuff What mouse_clik_event does is

Re: passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
On 9 June, 13:50, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Nick Keighley a écrit : On 9 June, 10:35, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Nick Keighley a crit : I'm trapping mouse clicks using

Re: GUIs - A Modest Proposal

2010-06-09 Thread D'Arcy J.M. Cain
On 09 Jun 2010 06:05:43 GMT Steven D'Aprano steve-remove-t...@cybersource.com.au wrote: I think the only way to end this pointless discussion is this: Hitler would have loved Tkinter! Sorry, Quirk's Exception to Godwin's Law says that you can't invoke Godwin's Law on purpose. -- D'Arcy J.M.

Re: passing data to Tkinter call backs

2010-06-09 Thread Bruno Desthuilliers
Nick Keighley a écrit : On 9 June, 13:50, Bruno Desthuilliers bruno. (snip) Note that the lambda trick you used is very idiomatic - functool.partial being newer and probably not as used - so one could argue that the most common way is also the most elegant !-) I'm somewhat newbie at Python

Re: sir

2010-06-09 Thread D'Arcy J.M. Cain
On Wed, 9 Jun 2010 14:24:50 +0530 madhuri vio madhuri@gmail.com wrote: sir i am wanted to know more in detail about expressions ..if u can give an abstract idea... Please read this before posting again. http://www.catb.org/~esr/faqs/smart-questions.html -- D'Arcy J.M. Cain

Re: GUIs - A Modest Proposal

2010-06-09 Thread Martin P. Hellwig
On 06/09/10 14:37, D'Arcy J.M. Cain wrote: On 09 Jun 2010 06:05:43 GMT Steven D'Apranosteve-remove-t...@cybersource.com.au wrote: I think the only way to end this pointless discussion is this: Hitler would have loved Tkinter! Sorry, Quirk's Exception to Godwin's Law says that you can't

Re: Python + vim + spaces vs tab

2010-06-09 Thread Robin Becker
On 09/06/2010 13:06, Jean-Michel Pichavant wrote: the idea is to switch between using tabs and spaces depending on the original source. If the input is all spaces we switch to tabs internally and then convert on output. If it was tabbed we keep that, if mixed I think it keeps that. This

Re: Syntax problem - cannot solve it by myself

2010-06-09 Thread Alister
On Wed, 09 Jun 2010 02:45:36 +, Deadly Dirk wrote: On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote: Unless you have a clear need for 3rd party libraries that currently don't have 3.x versions, starting with Python 3 isn't a bad idea. From what I see, most of the people are still

Re: sir

2010-06-09 Thread D'Arcy J.M. Cain
On Wed, 9 Jun 2010 09:50:18 -0400 D'Arcy J.M. Cain da...@druid.net wrote: On Wed, 9 Jun 2010 14:24:50 +0530 madhuri vio madhuri@gmail.com wrote: sir i am wanted to know more in detail about expressions ..if u can give an abstract idea... Please read this before posting again.

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread Dodo
Le 07/06/2010 15:26, Alf P. Steinbach a écrit : * Dodo, on 07.06.2010 12:38: Le 05/06/2010 19:07, Alf P. Steinbach a écrit : * Dodo, on 05.06.2010 15:46: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B =

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Roseman
I'll venture to say that the path of least resistance (which includes little or modest development effort) would be for Python to retain Tkinter in the way it does now, but have Tkinter GUI's magically appear less horrid. Guess what? That's already happened. Newer versions of Tk (which

Re: GUIs - A Modest Proposal

2010-06-09 Thread Stephen Hansen
On Wed, Jun 9, 2010 at 4:16 AM, ant shi...@uklinux.net wrote: We are talking about the thing that the rest of the world sees as Python's biggest missing piece Citation needed, or its just hyperbole. - the thing that beginning programmers look for and don't find - a decent, well-

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Roseman
bart.c ba...@freeuk.com wrote: Grant Edwards inva...@invalid.invalid wrote in message Since Tk already provides a basic GUI toolset, and Python can interface with it more directly than it can with other toolkits (PyGui - PyGtk - Gtk - Xlib), Compare that to this: TkInter - Tcl -

Re: passing data to Tkinter call backs

2010-06-09 Thread rantingrick
On Jun 9, 4:23 am, Nick Keighley nick_keighley_nos...@hotmail.com wrote: What mouse_clik_event does is modify some data and trigger a redraw. Is there any way to pass data to the callback function? Some GUIs give you a user-data field in the event, does Tkinter? I don't know how you're

[py3] Tkinter menu checkbutton not working

2010-06-09 Thread Dodo
Hello, I trying to make this piece of code work (this is python3) from tkinter import * from tkinter.ttk import * class Window: def __init__(self): self.root = Tk() self.menu = Menu(self.root) self.root['menu'] = self.menu self.submenu = Menu(self.menu) self.ck = 0

Re: if, continuation and indentation

2010-06-09 Thread Pete Forman
HH henri...@gmail.com writes: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. There are several good suggestions for formatting but no-one has mentioned rewriting the code. Use a boolean

Re: GUIs - A Modest Proposal

2010-06-09 Thread jyoung79
On Wed, 2010-06-09 at 04:16 -0700, ant wrote: Since I started this thread, I feel a sense of responsibility for it, in some bizarre way. I'm glad you brought this GUI subject up. I've enjoyed reading everyones thoughts on this subject. Most people who have used a GUI have some investment

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread rantingrick
On Jun 5, 8:46 am, Dodo dodo_do_not_wake...@yahoo.fr wrote: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First:         def __init__(self):                 self.root = Tk()                 B = Button(self.root, command=self.op)                

Re: if, continuation and indentation

2010-06-09 Thread Jean-Michel Pichavant
Pete Forman wrote: HH henri...@gmail.com writes: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. There are several good suggestions for formatting but no-one has mentioned rewriting the

Re: Tkinter menu checkbutton not working

2010-06-09 Thread rantingrick
On Jun 9, 11:26 am, Dodo dodo_do_not_wake...@yahoo.fr wrote: Hello, I trying to make this piece of code work (this is python3) from tkinter import * from tkinter.ttk import * class Window:   def __init__(self):    self.root = Tk()    self.menu = Menu(self.root)    self.root['menu'] =

Re: [py3] Tkinter menu checkbutton not working

2010-06-09 Thread Terry Reedy
On 6/9/2010 12:26 PM, Dodo wrote: Hello, I trying to make this piece of code work (this is python3) from tkinter import * from tkinter.ttk import * class Window: def __init__(self): self.root = Tk() self.menu = Menu(self.root) self.root['menu'] = self.menu self.submenu = Menu(self.menu)

Re: GUIs - A Modest Proposal

2010-06-09 Thread Ethan Furman
Steven D'Aprano wrote: In any case, Python doesn't ship with Tcl and Tk. They are dependencies *only if you use Tkinter*. It's not compulsory. So what do you call a fact with quark-like attributes? A quack? ;) Tcl/Tk do, in fact, ship with the Windows versions. Good reminder that they may

Re: Tkinter menu checkbutton not working

2010-06-09 Thread rantingrick
On Jun 9, 11:26 am, Dodo dodo_do_not_wake...@yahoo.fr wrote: snip Also you are now NOT using 8 space indention unlike your last post -- which i applaud you for. However you've gone to the opposite extreme with 2 space indention and interlaced it with one space indention, oh dear! Please use four

Re: GUIs - A Modest Proposal

2010-06-09 Thread Ethan Furman
Gregory Ewing wrote: Kevin Walzer wrote: PyGUI ... certainly is *not* a lightweight GUI toolkit that could easily be incorporated into the Python core library--it instead has rather complex dependencies on both other GUI toolkits and Python wrappers of those toolkits. I don't see how the

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread Dodo
Le 09/06/2010 18:49, rantingrick a écrit : On Jun 5, 8:46 am, Dodododo_do_not_wake...@yahoo.fr wrote: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B =

Re: Tkinter menu checkbutton not working

2010-06-09 Thread Dodo
Le 09/06/2010 18:54, rantingrick a écrit : On Jun 9, 11:26 am, Dodododo_do_not_wake...@yahoo.fr wrote: Hello, I trying to make this piece of code work (this is python3) from tkinter import * from tkinter.ttk import * class Window: def __init__(self): self.root = Tk() self.menu =

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread Dodo
Le 09/06/2010 19:13, Dodo a écrit : Le 09/06/2010 18:49, rantingrick a écrit : On Jun 5, 8:46 am, Dodododo_do_not_wake...@yahoo.fr wrote: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B = Button(self.root,

Re: FIle transfer over network - with Pyro?

2010-06-09 Thread Nathan Huesken
Thanks for all the replies. I might use http, or I utilize a separate ftp server. On Sat, 5 Jun 2010 13:34:45 -0700 geremy condra debat...@gmail.com wrote: On Sat, Jun 5, 2010 at 10:14 AM, Dan Stromberg strom...@gmail.com wrote: A more realistic answer is probably to use something based on

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 6:16 am, ant shi...@uklinux.net wrote: Since I started this thread, I feel a sense of responsibility for it, in some bizarre way. Not to prolong its existence, which is clearly a troubling one for some, but to try to steer it towards some kind of consensus that will irritate the

Re: GUIs - A Modest Proposal

2010-06-09 Thread Brian Blais
On Jun 9, 2010, at 7:16 , ant wrote: 1 Although a few advocates of Tkinter have spoken in favour of it, most seem to think that: It's not particularly elegant, either in its use or its implementation with Tcl/Tk Not many people use it anyway, so why bother? 2 Most people who have used

Re: GUIs - A Modest Proposal

2010-06-09 Thread Adam Tauno Williams
The GUI must be small, pythonic, and cross platform. And how many times have I heard that? I develop GUIs... good luck. Come back in ten years when you have some working code. Tkinter is aimed at the newbie and i would think that was Guido's original vision. And it's not the worst GUI by

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 12:53 pm, Brian Blais bbl...@bryant.edu wrote: On Jun 9, 2010, at 7:16 , ant wrote: 1 Although a few advocates of Tkinter have spoken in favour of it, most seem to think that:     It's not particularly elegant, either in its use or its implementation with Tcl/Tk     Not many

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 1:06 pm, Adam Tauno Williams awill...@whitemice.org wrote: Or just use a different one.  Simple enough. Thats not even valid to this argument. Everyone IS free to choose another GUI already. Please re-read this entire thread, absorb the contents therein, ponder extensively the pros and

Re: Tkinter menu checkbutton not working

2010-06-09 Thread rantingrick
On Jun 9, 12:20 pm, Dodo dodo_do_not_wake...@yahoo.fr wrote: Le 09/06/2010 18:54, rantingrick a crit : On Jun 9, 11:26 am, Dodododo_do_not_wake...@yahoo.fr  wrote: Hello, I trying to make this piece of code work (this is python3) from tkinter import * from tkinter.ttk import *

Re: is there a way to warn about missing modules *without* running python?

2010-06-09 Thread lkcl
On Jun 5, 7:24 pm, Terry Reedy tjre...@udel.edu wrote: On 6/5/2010 9:42 AM, lkcl wrote: if someone could perhaps explain this (in a different way from me), in the context of python the programming language and python the http://python.orginterpreter;, i.e. having absolutely nothing to do

Re: Question about NNTPLib

2010-06-09 Thread Anthony Papillion
I just had a quick look at the documentation. It looks like you should re-read it.http://docs.python.org/py3k/library/nntplib.html#nntplib.NNTP.xhdr snip Thank you for the help Thomas. I did reread the doc and I see what you mean. I think this will work now. Much thanks for the help! Anthony

Re: is there a way to warn about missing modules *without* running python?

2010-06-09 Thread lkcl
On Jun 5, 2:16 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: Neither Python, nor Javascript (as far as I know -- I welcome corrections) do static linking. for the command-line versions of javascript such as spidermonkey, i believe that a keyword/function is dropped into the

Re: GUIs - A Modest Proposal

2010-06-09 Thread Martin v. Loewis
Am 09.06.2010 01:54, schrieb Grant Edwards: On 2010-06-08, Martin v. Loewismar...@v.loewis.de wrote: Am 08.06.2010 20:15, schrieb Grant Edwards: On 2010-06-08, Martin v. Loewismar...@v.loewis.de wrote: TkInter - Tcl - Tk - Xlib Is the Tcl intepreter really need to use this GUI? Why

Re: GUIs - A Modest Proposal

2010-06-09 Thread Martin v. Loewis
But whenever I write a program that someone else is going to use, it has to have a GUI. Is that not true for most people? Most definitely not. Of the programs I recently wrote for other people, they either: - were command line scripts, meant to use for sysadmin jobs (and I wrote them for

Re: GUIs - A Modest Proposal

2010-06-09 Thread Martin v. Loewis
Am 09.06.2010 19:16, schrieb Ethan Furman: Gregory Ewing wrote: Kevin Walzer wrote: PyGUI ... certainly is *not* a lightweight GUI toolkit that could easily be incorporated into the Python core library--it instead has rather complex dependencies on both other GUI toolkits and Python wrappers

Re: GUIs - A Modest Proposal

2010-06-09 Thread Terry Reedy
On 6/9/2010 1:16 PM, Ethan Furman wrote: [re PyGUI] *Alert* Potentially dumb question following: On the MS Windows platform, Gtk is not required, just win32? Correct. A windows distribution probably would not include the gtk (or cocoa) versions. And Greg hopes to remove the win32 dependency

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 2:42 pm, Martin v. Loewis mar...@v.loewis.de wrote: I would personally prefer the win32 extensions to be rewritten for use in core Python. +1 That is, of course, all off-topic. Not entirely Martin, PyGUI is a real option to consider and PyWin32 is part of that option. Besides

Python Jobs

2010-06-09 Thread Michael Chambliss
I use Python for my own entertainment and for quick jobs, but haven't been able to use it professionally up to this point. As a former Perl developer and someone that's currently required to code in Java I'm starting to wish I had this opportunity. Can anyone comment on the Python job market?

Re: GUIs - A Modest Proposal

2010-06-09 Thread Grant Edwards
On 2010-06-09, Steven D'Aprano steve-remove-t...@cybersource.com.au wrote: On Tue, 08 Jun 2010 16:58:26 -0700, rantingrick wrote: We have a problem You keep saying that, but you've given no good reasons for why we should believe you, or what the nature of this problem supposedly is. The

  1   2   3   >