Thanks, this works. Now, since the tutorial I was using is clearly
rubbish, any better ones? For a (relative) newbie please. Also, how do
I code a GUI Hello World program?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
nterpreter does not complain about anything,
but the window the tutorial promises will apperar will not. I'm using
Python 2.4.2 and the Eric 3.7.0 IDE on Ubuntu 5.10. Anybody know what
to do?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
in
__init__
self.stackComboBox.sizePolicy().hasHeightForWidth()))
TypeError: argument 1 of QSizePolicy() has an invalid type
Segmentation fault
[EMAIL PROTECTED]:~$
Its not ment to do that... how to make it work right??
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Decided to try the eric3 IDE, but I cant figure out how to start it!
When I extract the file, all I can see is a ton of files and Python
scripts. What script will run the program? Where is it? Please help!
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Great, that works thanks
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
re" being, in reality, seperate?
Thanks in advance,
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh's way works: thank a million!
--
http://mail.python.org/mailman/listinfo/python-list
That dosnt work either:
sum = 0.1+1/4
print sum
Just returns 0.1
--
http://mail.python.org/mailman/listinfo/python-list
How come:
sum = 1/4
print sum
returns 0? 1/4=0.25, not 0. How do I fix this?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
above
it
Proof from my command line:
$ python program-that-dose-not-work.py
hello
What is x now?: 2
hello again
What is x now?: 1
hello again
What is x now?:
So, now I ask you: how do I make it work?
Thanks in advance,
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
"Try this (I think its called "argument expansion", but I really don't
know what its called, so I can't point you to docs):"
This works, thanks. But how acn I get rid of the ugly surrounding
brackets and commas?
e.g. If the scripts overall output was (('B', 'C'),), how to change it
to just B C?
eturn output2
def Func2(item1, item2):
print item1, item2
output1 = Func1()
Func2(output1)
Thanks in advance,
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Great, thanks
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
' from Func1() into
Func2(), but how?
Thanks in advance,
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Exactly what I want. Thanks a mill!
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
I know its possible to acsess Python via the command line, but can I do
the opposite and acsess the command line via Python? For example, can I
write a script that will enter
$ firefox
on the command line, opening Firefox for me?
Thanks in advance,
-- /usr/bin/byte
--
http://mail.python.org
dont need to be
told how to be polite, thank you. As regards to grammer/spelling, what
if sombody is unsure of how to spell something? And did you ever hear
of being in a rush?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Ahhh, Thanks
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Great, thanks all (the point of x = 2 was that i dont understand
exactly what True is on while True:)
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Great, thanks all. Now, how come
if x == mx: print x
break
Dosnt work?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
How can I make the following code:
from random import random
def stuff(a, mx):
x = 2
while x == 2:
x = random()
if x == mx: print x
else: print 'No luck,', x
x = 2
Stop when x == mx?
Thanks in advance,
-- /usr/bin/byte
--
http://mail.
>if it is in the sys.path
sys.path, what is this?
--
http://mail.python.org/mailman/listinfo/python-list
Found it in /usr/local/lib/python2.4/site-packages, thanks. Now, how do
i convert a .py program into a module?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
No, not there
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Pretty much self explanatry, where are Python modules stored in Linux?
(i.e. in /usr/bin/local, or where?)
--
http://mail.python.org/mailman/listinfo/python-list
Great stuff, thanks:
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
SE'
elif x >= 2 <= 2.999: print 'Ubuntu'
elif x >= 3 <= 3.999: print 'Mandriva'
elif x >= 4 <= 4.999: print 'Fedora'
sleep(2)
It dosnt work: only keep printing SuSE. Please help,
Thanks in advance,
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
I asked to keep it simple! Anyway, ill try Dive into Python, thanks
--
http://mail.python.org/mailman/listinfo/python-list
>parse the expression, extract the operands and the operation, apply the
operation to the operands
How? Give me some example code, but please keep it simple.
>are you trying to code a calculator?
Not intending to, just trying to learn Python. Suppose what i'm trying
to code is a but like a CLI c
Yes, sorry, didnt realise diffrence between int and input. Since i'm
such an idiot at this, any links to sites for people who need an
unessicerily gentle learning curve?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, never knew that, but they are using raw_input as a stack,
aren't they?
--
http://mail.python.org/mailman/listinfo/python-list
http://docs.python.org/tut/node6.html#SECTION00610
--
http://mail.python.org/mailman/listinfo/python-list
>what makes you think that basic Python functions work in radically
different ways on different platforms ?
Assumption. Im also new to programing, so could do something stupid
like think a Windows path is a command/input/etc. (really, ive done
things like that before.)
Now, im running this on a t
Florian Nykrin, that works! Thanks!
p.s. Xavier Morel, you seem to be using Windows, not Linux, and I got
the idea of stacking input on a raw_input from the official Python
Tutorial.
--
http://mail.python.org/mailman/listinfo/python-list
I know this is probably a stupid question, but I'm learning Python, and
am trying to get the if function to work with letters/words. Basicly,
I'm trying to write a script that when run, says
Please enter your name:
Then, if the user types myself as the name , the output is OK. Thats
all I want it
35 matches
Mail list logo