Re: Noob question: Is all this typecasting normal?

2009-01-06 Thread vk
Anyone have something to say about the userio stuff? (If you're going to post something about my coding style, I invite you to do something infinitely more useful: write crapToPep8.py {or is it crap_to_pep8?} to satisfy your sick fetish for consistency.) --

Re: ResponseNotReady exception

2009-01-06 Thread vk
http://www.python.org/phpvuln.txt Error 404: File Not Found The URL you requested was not found on this server. -- http://mail.python.org/mailman/listinfo/python-list

Re: Noob question: Is all this typecasting normal?

2009-01-03 Thread vk
Any more word on userio? None yet, I'm afraid. Should've started a different thread for it - but it's stuck here (in obscurity) forever xd. -- http://mail.python.org/mailman/listinfo/python-list

Port of python stdlib to other languages.

2009-01-03 Thread vk
Have there been ports of the Python standard library to other languages? I would imagine using pickle, urllib, and sys in C (with pythonic naming conventions) would be easier than using other libraries to do the same thing. -- http://mail.python.org/mailman/listinfo/python-list

Re: Port of python stdlib to other languages.

2009-01-03 Thread vk
AFAIK not. You could try elmer Elmer looks very interesting, but not really what I was getting at. What do you need C for anyway? Or, to put it the other way round - why not expose whatever you need in C as python extension, and write your app in Python? I'm not looking to write a Python app

Re: Noob question: Is all this typecasting normal?

2009-01-02 Thread vk
You might better do bet = int(raw_input(Enter your bet)) because then you don't need to later on convert bet again and again. This is all fine until you give it to an end-user. This is what I picture: $ ./script.py Enter your bet: $10 .. or perhaps ten, all, or a jillion other tainted

Re: Noob question: Is all this typecasting normal?

2009-01-02 Thread vk
If there were, I would expect it to conform with PEP 8 (get those ugly camelCase names outta there :-) haha, please forgive me. I'll try and think of some more creative names. atm, I've got a chem final to study for. I'll probably post something resembling useful code tomorrow morning. until

Re: Noob question: Is all this typecasting normal?

2009-01-02 Thread vk
etc etc ... IOW consider not biting off more than you can chew. It's possible that I am, but where's the fun without the risk? Good thinking in your post though! I will add get_date at some point, and I've modified get_numeric already. All-right, the moment you've all been waiting for:

Re: Ideas to optimize this getitem/eval call?

2009-01-02 Thread vk
What do you mean by 'fail'? you have; :: self.codes = {} so :: try: ::return eval(self.codes[expr], self.globals, self.locals) will always return an exception the first time (if this is what you're referring to). -- http://mail.python.org/mailman/listinfo/python-list

Re: Noob question: Is all this typecasting normal?

2009-01-02 Thread vk
Unless you explicitly *never* intend sharing your code with *anyone*, it's best to code all your Python code in accordance with PEP 8 anyway. Well said. Let's bury the puppy already. Anyone have something to say about the userio stuff? -- http://mail.python.org/mailman/listinfo/python-list

Re: Netbeans Early Access and Python3

2008-12-13 Thread vk
Netbeans is a very polished IDE. I just tried the Python EA plugin, however, and it does not have 3.x support as of now. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft's JavaScript doc's newfangled problem

2005-12-24 Thread VK
Xah Lee wrote: sometimes in the last few months, apparently Microsoft made changes to their JavaScript documentation website: Their *JScript* documentation website - here's the keyword. See:

Re: How to restrict lenght of entry widget to certain number of character

2005-06-02 Thread VK
Peter Otten wrote: Michael Onfrek wrote: import Tkinter as tk Hi! Can you explain what line above mean? I also found : http://effbot.org/zone/tkinter-entry-validate.htm It works for me, but I not really understand how? :) import Tkinter as tk Make objects defined in Tkinter

Re: Getting value of radiobutton trouble

2005-05-29 Thread VK
Philippe C. Martin wrote: PS: Since your starting with TKinter, and although I do not know what your goal is, I suggest you take a look at wxPython: it is _wonderfull_ ! (no offence to TCL/TK) Regards, Philippe VK wrote: Philippe C. Martin wrote: Hi, I think your second

Re: Copy paste in entry widget

2005-05-29 Thread VK
Michael Onfrek wrote: Hi, is copy, paste, cut of selection possible in entry widget? Docs say selection must be copied by default, in my programm it doesn't work. Regards, M.O. Hear it is def paste(self): self.entry.event_generate('Control-v') def cut(self):

Entry scroll doesn't work

2005-05-29 Thread VK
Hi! Can entry widget be scrolled? VK TypeError: xview() takes exactly 2 arguments (4 given) Code: from Tkinter import * class ScrollEntry: def __init__(self): self.root = Tk() self.scrollbar = Scrollbar(self.root,orient=HORIZONTAL,) self.entry

Re: Entry scroll doesn't work

2005-05-29 Thread VK
VK wrote: Hi! Can entry widget be scrolled? VK TypeError: xview() takes exactly 2 arguments (4 given) Code: from Tkinter import * class ScrollEntry: def __init__(self): self.root = Tk() self.scrollbar = Scrollbar(self.root,orient=HORIZONTAL

Getting value of radiobutton trouble

2005-05-28 Thread VK
Hi! What I'm missing in following code? Cannot get the values of radiobuttons. Starting only one class (GetVariant), it works. When I put two classes together, it doesn't. Regards, VK from Tkinter import * class GetVariant: def __init__(self): self.root = Tk

Re: Getting value of radiobutton trouble

2005-05-28 Thread VK
(self): a=GetVariant() d = OneButton() d.root.mainloop() VK wrote: Hi! What I'm missing in following code? Cannot get the values of radiobuttons. Starting only one class (GetVariant), it works. When I put two classes together, it doesn't. Regards, VK from Tkinter import

Re: Getting value of radiobutton trouble

2005-05-28 Thread VK
Philippe C. Martin wrote: Sorry, I still had your code in my clipboard :-) here goes: So, your code works, but I need, that first window calls another separate window. In your programm they stick together. Reg, VK from Tkinter import * class GetVariant(Frame): def __init__

Re: Copy paste in entry widget

2005-05-28 Thread VK
Skip Montanaro wrote: Michael is copy, paste, cut of selection possible in entry widget? Docs Michael say selection must be copied by default, in my programm it Michael doesn't work. What platform? What GUI toolkit? Linux, Windows. TkInter, Pmw. I've already implemented this

Re: Getting value of radiobutton trouble

2005-05-28 Thread VK
() d.root.mainloop() VK wrote: Philippe C. Martin wrote: Sorry, I still had your code in my clipboard :-) here goes: So, your code works, but I need, that first window calls another separate window. In your programm they stick together. Reg, VK from Tkinter import * class GetVariant

Access from one class to methode of other class

2005-05-26 Thread VK
Hi, all! In my programm i have to insert a variable from class 2 to class 1 and I get error NameError: global name 'd' is not defined. How do I get access to d.entry.insert() method of class 1 class 1: self.entry = Entry(self.entryframe) self.entry.pack() self.button =

Re: Access from one class to methode of other class

2005-05-26 Thread VK
I don't know if your're actually calling the classes '1' and '2', but that's a really bad idea! class 2: def ins(self) d.entry.insert(variable) This is probably where you're getting the NameError. d is not defined, so calling d.entry will generate an error. Reidar What

Re: Access from one class to methode of other class

2005-05-26 Thread VK
VK wrote: Hi, all! In my programm i have to insert a variable from class 2 to class 1 and I get error NameError: global name 'd' is not defined. Looking at your code snippet, I think you have a lot of other errors before. class 1: self.entry = Entry(self.entryframe) NameError

Re: Access from one class to methode of other class

2005-05-26 Thread VK
On Thu, 26 May 2005 14:33:45 +0200, VK myname@example.invalid declaimed the following in comp.lang.python: Hi, all! In my programm i have to insert a variable from class 2 to class 1 and I get error NameError: global name 'd' is not defined. How do I get access to d.entry.insert() method

Re: Access from one class to methode of other class

2005-05-26 Thread VK
Kent Johnson wrote: VK wrote: On Thu, 26 May 2005 14:33:45 +0200, VK myname@example.invalid declaimed the following in comp.lang.python: Hi, all! In my programm i have to insert a variable from class 2 to class 1 and I get error NameError: global name 'd' is not defined. How do I get