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.)
--
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
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
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
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
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
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
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:
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
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
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
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:
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
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
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):
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
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
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
(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
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__
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
()
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
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 =
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
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
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
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
27 matches
Mail list logo