Re: [Tutor] Boa Constructor list control

2010-04-29 Thread Marc Tompkins
On Thu, Apr 29, 2010 at 11:07 PM, Ray Parrish wrote: > OK, I've discovered the collection editor, and now know how to use it, but > when I click the new button in the collection editor for a list control, it > pops up an error message stating that the list needs to be created with the > wx.LC_REP

Re: [Tutor] Boa Constructor list control

2010-04-29 Thread Ray Parrish
Ray Parrish wrote: Hello, I am just learning how to use Boa Constructor to make GUI apps, and am having some problem with understanding the list control. The list control has a property called columns, but I cannot figure out how to add columns, and specify names for them. When I click the

[Tutor] Boa Constructor list control

2010-04-29 Thread Ray Parrish
Hello, I am just learning how to use Boa Constructor to make GUI apps, and am having some problem with understanding the list control. The list control has a property called columns, but I cannot figure out how to add columns, and specify names for them. When I click the column property a s

Re: [Tutor] blackjack game

2010-04-29 Thread Steven D'Aprano
On Fri, 30 Apr 2010 06:23:44 am Shurui Liu (Aaron Liu) wrote: > Here is the code of this game. I want to change some part of them. > 1. Since I don't know what part of code is "responsible" for the > number of cards, so I don't know how to add a "card number check" > attribute, I mean, to check th

Re: [Tutor] blackjack game

2010-04-29 Thread Alan Gauld
"Shurui Liu (Aaron Liu)" wrote Your sig says you are studying Comp Sci and engineering. You have posted the code for what is really a very, very, small program. In the real world you will be expected to read and understand much bigger programs than this - think about 1000+ files and half a mil

Re: [Tutor] Any

2010-04-29 Thread Alan Gauld
"Steven D'Aprano" wrote Pythoncard is a desktop application based on Apple's much-loved and never forgotten Hypercard (may it rest in peace!). And Dabo is based on Visual FoxPro. Just a caveat: Both of these are really development tools rather than applications in the normal sense - alth

Re: [Tutor] blackjack game

2010-04-29 Thread Lie Ryan
On 04/30/10 06:23, Shurui Liu (Aaron Liu) wrote: > # Blackjack > # From 1 to 7 players compete against a dealer > > > Here is the code of this game. I want to change some part of them. > 1. Since I don't know what part of code is "responsible" for the > number of cards, so I don't know how to ad

[Tutor] blackjack game

2010-04-29 Thread Shurui Liu (Aaron Liu)
# Blackjack # From 1 to 7 players compete against a dealer import cards, games class BJ_Card(cards.Card): """ A Blackjack Card. """ ACE_VALUE = 1 def get_value(self): if self.is_face_up: value = BJ_Card.RANKS.index(self.rank) + 1 if value > 10:

Re: [Tutor] How to get ipRouteTable from Cisco router?

2010-04-29 Thread Костиков Сергей Николаевич
Hello! I want to get route tables from Cisco routers in the network. What i have: else: for varBindTableRow in varBindTable: for oid, val in varBindTableRow: print varBindTableRow Result: Code: Select all [(ObjectName('1.3.6.1.2.1.4.21.1.1.0.0.0.0'), IpAdd

Re: [Tutor] Any

2010-04-29 Thread iamroot
> > The Reddit website is written in Python, as is the EVE Online massive > multiplayer game, although I doubt the source code for them are > available. > Actually, Reddit has made it's source available and has included a HOWTO install Reddit

[Tutor] How to get ipRouteTable from Cisco router?

2010-04-29 Thread Костиков Сергей Николаевич
Hello! I want to get route tables from Cisco routers in the network. What i have: import re from pysnmp.entity.rfc3413.oneliner import cmdgen s = r'(%s)' % ('(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.)\ {3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)') pattern = re.compile(s) file = 'rou

Re: [Tutor] Any

2010-04-29 Thread Steven D'Aprano
On Thu, 29 Apr 2010 08:06:30 pm Kevin Kirton wrote: > Hi all, > > I was just wondering if anyone here can recommend any freeware > program that has been written in python and for which the source code > is available. The Red Hat Package Manager (rpm) is written in Python. The original BitTorrent

Re: [Tutor] Any

2010-04-29 Thread Kevin Kirton
Alan Gauld wrote: > But if thats not enough try both sourceforge and the PyGame web sites. > On sourceforge search for projects using python... DIA is one that springs > to mind(a Visio type drawing program) > > PyGame has lots of Python games you can download, several with source. PyGame looks p

Re: [Tutor] Any

2010-04-29 Thread spir ☣
On Thu, 29 Apr 2010 13:04:20 +0100 "Alan Gauld" wrote: > IDLE? > The IDE that comes with Python ias wtten in Python and the > source comes as part of the standard library. There's also a free software programming editor --editra, I guess-- written in and mainly for python. (But I would not re

Re: [Tutor] Any

2010-04-29 Thread Kevin Kirton
Christian Witts wrote: > Maybe look through projects at Freshmeat [1]. > > [1] http://freshmeat.net/tags/python That's exactly what I was looking for. I've already selected a few small programs and now I plan on installing them, seeing how they operate from a user's perspective, then I'll take a

Re: [Tutor] Any

2010-04-29 Thread Alan Gauld
"Kevin Kirton" wrote I was just wondering if anyone here can recommend any freeware program that has been written in python and for which the source code is available. IDLE? The IDE that comes with Python ias wtten in Python and the source comes as part of the standard library. But if t

Re: [Tutor] Any

2010-04-29 Thread Christian Witts
Kevin Kirton wrote: Hi all, I was just wondering if anyone here can recommend any freeware program that has been written in python and for which the source code is available. Basically I just want to see a program that does something relatively simple and straightforward, but something that is

[Tutor] Any

2010-04-29 Thread Kevin Kirton
Hi all, I was just wondering if anyone here can recommend any freeware program that has been written in python and for which the source code is available. Basically I just want to see a program that does something relatively simple and straightforward, but something that is "real world," I mean s

[Tutor] [Fwd: Re: Which Designer]

2010-04-29 Thread Sharon
Thank you both for your help and insight. It has given me room for thought. Much appeciated, Sharon Original Message Subject:Re: [Tutor] Which Designer Date: Mon, 26 Apr 2010 09:09:59 +0100 From: Alan Gauld To: tutor@python.org References: <4bd44500.9060...@