On 5 November 2010 00:40, Mac Ryan wrote:
>
> Thank you Walter. I got it and it works! :)
>
Excellent. I thought I'd mention here you can also create your own
Namespace object (e.g. if you find accessing __dict__ not ideal or something
you can do your own implementation, which will work as long
Chris King wrote:
Dear Tutors,
May server and client programs aren't working. They basically
simplify socket and SocketServer. Run them directly to test them. They
do work locally. They don't work from one computer to the next on the
same network. Please Help.
It's probably a network is
Dear Tutors,
May server and client programs aren't working. They basically
simplify socket and SocketServer. Run them directly to test them. They
do work locally. They don't work from one computer to the next on the
same network. Please Help.
Sincerely,
Me, Myself, and I
P.S. How to
On Fri, 2010-11-05 at 00:17 +, Walter Prins wrote:
>
>
> On 4 November 2010 23:20, Mac Ryan wrote:
> My question boils down to: how can I expand the Namespace
> object in
> order to get a list of keyword arguments?
>
> If "ns" is your Namespace object, then use ns.__
On 4 November 2010 23:20, Mac Ryan wrote:
> My question boils down to: how can I expand the Namespace object in
> order to get a list of keyword arguments?
>
If "ns" is your Namespace object, then use ns.__dict__, which you can
directly pass to your commands, e.g.
do_stuff(**ns.__dict__)
I'll
Hi,
I'm writing a small command line utility using the argparse module (I
am on python 2.6.6 so that's not in the standard lib, but this should
not play any role in my problem, I believe).
My goal is to use a class that I already wrote and cannot change for a
GUI app, as a command
Your code is not bad overall, pretty great for a beginner actually. I would say
you should read guido's style guide though; some of your variable and function
naming is nonstandard python.
-
Sent from a mobile device with a bad e-mail client.
-
Also for your confirm entries read about sentinel values for while loops. It
saves you repeating the conditional in the loop body. And you might want to
.lower().strip()[0] the input choice so that they can use y, Y, yes, or
whatever. Remember, users suck at generating accurate and correct input
Also for your confirm entries function, read about while loops
-
Sent from a mobile device with a bad e-mail client.
-
On Nov 4, 2010, at 3:10 PM, Glen Clark wrote:
> Hello,
>
> I have completed my first python script. This is after watc
Am 04.11.2010 20:43, schrieb Jorge Biquez:
Hello all.
I am newbie and studying and working hard learning python. Per your
advise I am on 2.7 . I have one question for you.
I can work on Windows (XP) or under Ubuntu .
The advantage of using Ubuntu is that you learn how to work in a
Linux/Unix
> -Original Message-
> From: tutor-bounces+bermanrl=cfl.rr@python.org [mailto:tutor-
> bounces+bermanrl=cfl.rr@python.org] On Behalf Of Jorge Biquez
> Sent: Thursday, November 04, 2010 3:44 PM
> To: tutor@python.org
> Subject: [Tutor] Advantages or disadvantages on Platform?
>
>
Hello,
I have completed my first python script. This is after watching a video
guide on python and is my first attempt at writing code in python. While the
code is not very useful I got the idea for it when googling "python projects
for beginners".
The idea was to create a script that asked the u
Hello all.
I am newbie and studying and working hard learning python. Per your
advise I am on 2.7 . I have one question for you.
I can work on Windows (XP) or under Ubuntu .
Do you see any advantages or disadvantanges to be working in one or another ?
My main goal , for now, is use Python for
On 02/11/2010 20.07, Glen Clark wrote:
sorry:
NumItems = int(input("How many Items: "))
Entries = []
for In in range(0,NumItems):
Entries.append("")
for In in range(0,NumItems):
Entries[In]=str(input("Enter name " + str(In+1) + ": "))
for In in range(0,NumItems):
print
"Alan Gauld" wrote
fhdl = Image.open("C:\Users\StarShip\PyProgs\\bbsparkle.gif")
fhdl.show()
The Tkinter PhotoImage object can display jpg. I can't recall if
it does gifs.
Sorry I got that wrong, it can display gifs but not jpgs (despite
the fact that jpgs are used more often for photo
Thank you for all the replies - I think I will want to use Tkinter since it
also has the timer I am looking for and I do have one book that has a big
chapter on using Tkinter. If I find that I am having trouble understanding
Python GUI programming. I may be able to copy some code from the book
On Thu, Nov 4, 2010 at 3:58 AM, Alan Gauld wrote:
>
> wrote
>
>
> of my python program where a picture is supposed to display with a few
>> lines of text below it.
>>
>
> To do this you will need to use some kind of GUI.
> The simplest option is probably to use the Text widget in Tkinter
> whic
"Alan Gauld" wrote
...a picture is supposed to display with a few
lines of text below it.
To do this you will need to use some kind of GUI.
The simplest option is probably to use the Text widget in Tkinter
I just had a thought. The simplest option might be to use HTML
to create a simple
On 04/11/2010 04:24, pa...@cruzio.com wrote:
Hi - I am running Python 2.6.6 on my HP netbook with Windows 7. The
default picture viewer is set to HP Photo Viewer. I am working on a part
of my python program where a picture is supposed to display with a few
lines of text below it. Ideally, I wou
wrote
of my python program where a picture is supposed to display with a
few
lines of text below it.
To do this you will need to use some kind of GUI.
The simplest option is probably to use the Text widget in Tkinter
which can display both Images and text.
Ideally, I would like this to s
20 matches
Mail list logo