Re: GUI Program Error

2006-06-07 Thread Byte
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

GUI Program Error

2006-06-05 Thread Byte
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

Re: Starting/launching eric3

2006-05-14 Thread Byte
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

Starting/launching eric3

2006-05-14 Thread Byte
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

Re: Converting tuple to String

2006-04-30 Thread Byte
Great, that works thanks -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Converting tuple to String

2006-04-30 Thread Byte
re" being, in reality, seperate? Thanks in advance, -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Re: Working with decimal points

2006-04-08 Thread Byte
Fredrik Lundh's way works: thank a million! -- http://mail.python.org/mailman/listinfo/python-list

Re: Working with decimal points

2006-04-08 Thread Byte
That dosnt work either: sum = 0.1+1/4 print sum Just returns 0.1 -- http://mail.python.org/mailman/listinfo/python-list

Working with decimal points

2006-04-08 Thread Byte
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

Getting a loop to activate a loop above it

2006-03-22 Thread Byte
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

Re: Importing an output from another function

2006-03-18 Thread Byte
"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?

Re: Importing an output from another function

2006-03-17 Thread Byte
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

Re: Importing an output from another function

2006-03-17 Thread Byte
Great, thanks -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Importing an output from another function

2006-03-17 Thread Byte
' from Func1() into Func2(), but how? Thanks in advance, -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Re: Interfacing with the command line

2006-03-08 Thread Byte
Exactly what I want. Thanks a mill! -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Interfacing with the command line

2006-03-08 Thread Byte
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

Re: Another stupid newbie question

2006-02-19 Thread Byte
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

Re: Another stupid newbie question

2006-02-17 Thread Byte
Ahhh, Thanks -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Re: Another stupid newbie question

2006-02-17 Thread Byte
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

Re: Another stupid newbie question

2006-02-17 Thread Byte
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

Another stupid newbie question

2006-02-17 Thread Byte
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.

Re: Location of Python modules

2006-02-14 Thread Byte
>if it is in the sys.path sys.path, what is this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Location of Python modules

2006-02-13 Thread Byte
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

Re: Location of Python modules

2006-02-13 Thread Byte
No, not there -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Location of Python modules

2006-02-13 Thread Byte
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

Re: Small newbie question

2006-02-12 Thread Byte
Great stuff, thanks: -- /usr/bin/byte -- http://mail.python.org/mailman/listinfo/python-list

Small newbie question

2006-02-12 Thread Byte
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

Re: Learning Python

2006-02-05 Thread Byte
I asked to keep it simple! Anyway, ill try Dive into Python, thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python

2006-02-05 Thread Byte
>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

Re: Learning Python

2006-02-05 Thread Byte
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

Re: Learning Python

2006-02-05 Thread Byte
Thanks, never knew that, but they are using raw_input as a stack, aren't they? -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python

2006-02-05 Thread Byte
http://docs.python.org/tut/node6.html#SECTION00610 -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python

2006-02-05 Thread Byte
>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

Re: Learning Python

2006-02-05 Thread Byte
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

Learning Python

2006-02-05 Thread Byte
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