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() tk.de

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 b

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 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 geometry > canva

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 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 error traceback! I s

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 you

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 processi

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 will

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, s

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 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 i encourage you to put a

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 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. Geremy Condra --

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("", 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 pass data to the

Re: GUIs - A Modest Proposal

2010-06-09 Thread Chris Rebert
On Wed, Jun 9, 2010 at 1:45 AM, Lie Ryan 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 macs. >> >> I

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 interface

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 > 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 Windows, > >

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("", mouse_clik_event) def mouse_clik_event (event) : stuff What mouse_clik_event does is modify some data and trigger a redraw. Is there a

Re: function that counts...

2010-06-09 Thread Albert van der Horst
In article , Albert van der Horst wrote: >In article <4bf442cd$0$31377$4fafb...@reader1.news.tin.it>, >superpollo wrote: >>... how many positive integers less than n have digits that sum up to m: >> >>In [197]: def prttn(m, n): >> tot = 0 >> for i in range(n): >> s = str(i) >>

Re: optparse: best way

2010-06-09 Thread hiral
On Jun 8, 3:03 pm, Jean-Michel Pichavant 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 following... > > >

Re: optparse: best way

2010-06-09 Thread hiral
On Jun 8, 4:30 pm, Hrvoje Niksic wrote: > Thomas Jollans 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 > options in a fairly standard and

Re: GUIs - A Modest Proposal

2010-06-09 Thread geremy condra
On Wed, Jun 9, 2010 at 2:38 AM, Adam Tauno Williams 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 >> wrote: >> > On Tue, 2010-06-08 at 18:12 -0700, geremy condra wrote: >> >> > * IronPython relies on the .Net environment fo

Re: passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
On 9 June, 10:35, Bruno Desthuilliers wrote: > Nick Keighley a crit : > > I'm trapping mouse clicks using > > > canvas.bind("", 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: 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 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 fol

Re: Replace in large text file ?

2010-06-09 Thread hiral
On Jun 6, 7:27 am, Steve wrote: > On 5 June, 08:53, Steve 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 > > Save as a new file. > > >

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', '/usr/

Re: help me

2010-06-09 Thread Chris Rebert
> On Wed, Jun 9, 2010 at 3:37 PM, Dave Angel 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 top-posti

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', '/usr/lib/py

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 wrote: > > On Wed, Jun 9, 2010 at 3:37 PM, Dave Angel wrote: > >> Note, I said "REPLY-ALL'. By default a simple reply goes to the > >> indi

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 wrote: > madhuri vio wrote: > >> 1)2.6.2 (release26-maint, Apr 19 2009, 01:56:41) >>

Re: help me

2010-06-09 Thread Chris Rebert
> On Wed, Jun 9, 2010 at 4:07 PM, Chris Rebert wrote: >> > On Wed, Jun 9, 2010 at 3:37 PM, Dave Angel 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 send

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, Steve wrote: On 5 June, 08:53, Steve 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 CL..with the hello's changed for my needs

Re: help me

2010-06-09 Thread Simon Brunning
On 9 June 2010 11:44, madhuri vio 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 . -- Cheers, Simon B. -- http://mail.python.org/mail

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 mu

Re: help me

2010-06-09 Thread Simon Brunning
On 9 June 2010 11:47, madhuri vio 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 () suggests that module names be lower

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 kin

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 le

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

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 space

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 p

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 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 us

Re: passing data to Tkinter call backs

2010-06-09 Thread Bruno Desthuilliers
Nick Keighley a écrit : On 9 June, 10:35, Bruno Desthuilliers wrote: Nick Keighley a crit : I'm trapping mouse clicks using canvas.bind("", 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 pas

Re: passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
On 9 June, 13:50, Bruno Desthuilliers wrote: > Nick Keighley a écrit : > > > > > > > On 9 June, 10:35, Bruno Desthuilliers > 42.desthuilli...@websiteburo.invalid> wrote: > >> Nick Keighley a crit : > > >>> I'm trapping mouse clicks using > >>> canvas.bind("", mouse_clik_event) > >>> def mouse_cli

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 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. Cain | Democracy is

Re: passing data to Tkinter call backs

2010-06-09 Thread Bruno Desthuilliers
Nick Keighley a écrit : On 9 June, 13:50, Bruno Desthuilliers (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 but I'd

Re: sir

2010-06-09 Thread D'Arcy J.M. Cain
On Wed, 9 Jun 2010 14:24:50 +0530 madhuri vio 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 | Democracy is three wol

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'Aprano 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. How

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

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" wrote: > On Wed, 9 Jun 2010 14:24:50 +0530 > madhuri vio 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/

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 = 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 Tkint

Re: GUIs - A Modest Proposal

2010-06-09 Thread Stephen Hansen
On Wed, Jun 9, 2010 at 4:16 AM, ant 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- > supported and elegant

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Roseman
"bart.c" wrote: > "Grant Edwards" 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 -> Tk -> Xlib > Is

Re: passing data to Tkinter call backs

2010-06-09 Thread rantingrick
On Jun 9, 4:23 am, Nick Keighley 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 triggering redraws but you need to

[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 self.submenu.a

Re: if, continuation and indentation

2010-06-09 Thread Pete Forman
HH 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 variable to hold the

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 investmen

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

2010-06-09 Thread rantingrick
On Jun 5, 8:46 am, Dodo 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) >                 B.pack() > >    

Re: if, continuation and indentation

2010-06-09 Thread Jean-Michel Pichavant
Pete Forman wrote: HH 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: Tkinter menu checkbutton not working

2010-06-09 Thread rantingrick
On Jun 9, 11:26 am, 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 > >  

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) self

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 wrote: 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 space indention as this is the p

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 dep

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, Dodo 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: 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, 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.roo

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, Dodo 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) B.pack() s

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 wrote: > On Sat, Jun 5, 2010 at 10:14 AM, Dan Stromberg > wrote: > >> A more realistic answer is probably to use something based on > >> HTTP. This solves a number o

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 6:16 am, 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 number of p

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 a

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 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 people

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 1:06 pm, Adam Tauno Williams 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 cons, and then formul

Re: Tkinter menu checkbutton not working

2010-06-09 Thread rantingrick
On Jun 9, 12:20 pm, Dodo wrote: > Le 09/06/2010 18:54, rantingrick a crit : > > > > > > > On Jun 9, 11:26 am, 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 __in

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 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 > > wit

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 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 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 global namespace - "load", which tak

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. Loewis wrote: Am 08.06.2010 20:15, schrieb Grant Edwards: On 2010-06-08, Martin v. Loewis wrote: TkInter -> Tcl -> Tk -> Xlib Is the Tcl intepreter really need to use this GUI? Why not: (Pyton ->) Tkinter-API ->

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 th

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 of

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 by

Re: GUIs - A Modest Proposal

2010-06-09 Thread rantingrick
On Jun 9, 2:42 pm, "Martin v. Loewis" 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 PyWin32 should hav

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? If

Re: GUIs - A Modest Proposal

2010-06-09 Thread Grant Edwards
On 2010-06-09, Steven D'Aprano 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 current situation has broad

Re: GUIs - A Modest Proposal

2010-06-09 Thread Grant Edwards
On 2010-06-09, Martin v. Loewis wrote: > Am 09.06.2010 01:54, schrieb Grant Edwards: >> On 2010-06-08, Martin v. Loewis wrote: >>> Am 08.06.2010 20:15, schrieb Grant Edwards: On 2010-06-08, Martin v. Loewis wrote: >> TkInter -> Tcl -> Tk -> Xlib >> >> Is the Tcl inteprete

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

2010-06-09 Thread Terry Reedy
On 6/9/2010 1:13 PM, Dodo wrote: import Tkinter as tk from Tkconstants import * import tkSimpleDialog class MyDialog(tkSimpleDialog.Dialog): def body(self, master): prompt = "Hello from my custom dialog!\nAlthough with something this simple i should have used tkMessageBox." tk.Label(self, text=

Re: pprint

2010-06-09 Thread Rodrick Brown
On Wed, Jun 9, 2010 at 5:01 AM, madhuri vio wrote: > sir what is the function of pprint??? > could you please help me out with that > > -- > madhuri :) > > rbr...@laptop:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "licens

Re: GUIs - A Modest Proposal

2010-06-09 Thread Mark Lawrence
On 09/06/2010 18:38, rantingrick wrote: [snip] Don't worry about irritating people. There are a subset of folks on this list that await the chance to be offended just so they can spew bile. Really, don't worry about them. And never allow these minions to quell your freedom of speech, because th

Re: Python Jobs

2010-06-09 Thread Giampaolo Rodolà
This is an interesting subject. > - Your location - country, state or city, whatever you care to provide Turin, Italy > - Your focus - Product Development (web sites/apps), Education, R&D/Science, > IT/Sys Admin, etc Web development based on Zope, Grok and Plone > - Your company size Small.

Re: Python Jobs

2010-06-09 Thread Tim Chase
On 06/09/2010 03:21 PM, Michael Chambliss wrote: - Your location - country, state or city, whatever you care to provide Outside Dallas, TX, USA - Your focus - Product Development (web sites/apps), Education, R&D/Science, IT/Sys Admin, etc split between development (web & apps) and IT/Sys ad

Re: Python Jobs

2010-06-09 Thread Terry Reedy
On 6/9/2010 4:21 PM, Michael Chambliss wrote: 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.

  1   2   >