Re: Tkinter button doesn't appear in OS X

2006-12-12 Thread crystalattice
I downloaded your file and got it working. Thanks for the hint and the code. I really appreciate it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter button doesn't appear in OS X

2006-12-12 Thread crystalattice
Kevin Walzer wrote: > When you run your program on OS X, there should be a menu item next to > the Apple menu that says "about Tcl/Tk," which you access from the > "Python" menu item. That will give you the version number. > > Python 2.3.5 and Tcl/Tk 8.4.7 ship with OS X 10.4. Python 2.4.2 is a >

Re: Tkinter button doesn't appear in OS X

2006-12-11 Thread crystalattice
Kevin Walzer wrote: > > What version of Tk are you running? I've seen this bug on old versions > of Tk (i.e. 8.4.7) but not recently. > > -- > Kevin Walzer > Code by Kevin > http://www.codebykevin.com I'm using Python 2.4.2, which I believe is the default version for OS X. How do I check the Tk

Re: Advice for a novice on making ambitious cross-platform GUI app

2006-09-27 Thread crystalattice
John Salerno wrote: > crystalattice wrote: > > > I'm working on making an > > RPG from scratch and I'm the only one doing it, but I'm learning a lot > > and just keep asking questions. > > Intriguing. Any tips on how you are going about learning th

Re: Advice for a novice on making ambitious cross-platform GUI app

2006-09-26 Thread crystalattice
Chelonian wrote: > Can Python *alone* produce something like what I've described? Or > would I have to have some parts written in C? Or is Python really not > best-suited to these needs? As already mentioned, Python is capable of doing nearly any type of program. As long as you don't need low-l

Re: Looking for opinions

2006-09-23 Thread crystalattice
Bruno Desthuilliers wrote: > I have few experience with RPG softwares, but if your "domain" logic si > anything more than trivially complex, it's always better to keep it as > decoupled as possible from the user interface (unless of course the user > interface actually is the domain !-). FWIW, thi

Looking for opinions

2006-09-22 Thread crystalattice
I've been working on a game for several months but now I'm thinking I may be going about it the wrong way. It's an online RPG designed to recreate a pen & paper session, kind of like the OpenRPG project. Originally I planned on doing something like OpenRPG with a Python app that contained everyth

Re: Timeline for Python?

2006-09-01 Thread crystalattice
I'd write for 2.4, even though 2.5 should be coming out "shortly". There aren't many significant changes to the whole language between 2.4 and 2.5. Probably the best thing is write for 2.4 and have a sidenote stating where 2.5 operates differently. The Python 3 timeline is almost a moving target

Re: AttributeError: 'Attributes' object has no attribute 'saveFile'

2006-09-01 Thread crystalattice
[EMAIL PROTECTED] wrote: > Hi > > Sounds like you've got a wizard-type interface thing happening. > I haven't used wxGlade but I have done similar things in GTK several > times. > > Try putting all the windows in a notebook widget with hidden tabs. > Put the 'Next Page' button and the filename out

AttributeError: 'Attributes' object has no attribute 'saveFile'

2006-08-31 Thread crystalattice
Not sure how to explain, but I'll try my best. I'm making a GUI with wxGlade. The GUI has windows that open when the "Next Page" button is pushed; the button also pickles the information that is input into the frame at the same time. The saveFile name is autocreated based on the data entered by

Re: wxGlade and __init__

2006-08-26 Thread crystalattice
Tim N. van der Leeuw wrote: > crystalattice wrote: > > I'm making a GUI for a console-based program I just wrote. I figured > > it would be mostly straight forward to convert it over in wxPython but > > now I'm confused. > > > > Hi Crystalattice, >

wxGlade and __init__

2006-08-25 Thread crystalattice
I'm making a GUI for a console-based program I just wrote. I figured it would be mostly straight forward to convert it over in wxPython but now I'm confused. In my console program, I have __init__ making the dictionaries et al. and then my methods will populate them. However, when I use wxGlade

Re: Best Editor

2006-08-25 Thread crystalattice
JAG CHAN wrote: > Friends, I am trying to learn Python. > It will be of great help to me if you let me know which one would be best > editor for learning Python. > Plese note that I would like to have multiplatform editor which will be > useful for both LInux and Windows XP. > Thanks. My choice i

wxPython default radiobox choice

2006-08-24 Thread crystalattice
In my GUI app, I have a radio box allowing the user to pick his/her gender. When I click a button, I'd like the radio box to tell the program which choice is marked. I can get it to work when I manually pick a choice but I get an error when the choice is left at the default value, which is "Male"

Re: wxPython default radiobox choice

2006-08-24 Thread crystalattice
Laszlo Nagy wrote: > crystalattice írta: > > In my GUI app, I have a radio box allowing the user to pick his/her > > gender. When I click a button, I'd like the radio box to tell the > > program which choice is marked. I can get it to work when I manually > >

Re: do people really complain about significant whitespace?

2006-08-07 Thread crystalattice
infidel wrote: > Where are they-who-hate-us-for-our-whitespace? Are "they" really that > stupid/petty? Are "they" really out there at all? "They" almost sound > like a mythical caste of tasteless heathens that "we" have invented. > It just sounds like so much trivial nitpickery that it's hard to

Re: Which KDE IDE for Python?

2006-08-06 Thread crystalattice
Bart Ogryczak wrote: > Hi, > Rigth now I'm using two IDEs for Python, KDevelop and Eric. Both have > drawbacks. KDevelop is a multilanguage IDE, and doesn't really have > anything special for Python. There's no Python debugger, no PyDOC > integration, it's class browser doesn't display attributes.

Re: OS independent files

2006-08-03 Thread crystalattice
Simon Forman wrote: > Google groups has a very good search. That's what I'm using, and it still came up with 600-900 results depending on my search terms. > Try os.path.expanduser('~') (in > http://docs.python.org/lib/module-os.path.html) or you could just look > up the HOME environment variable

OS independent files

2006-08-03 Thread crystalattice
I'm sure this has been addressed before but it's difficult to search through several thousand postings for exactly what I need, so I apologize if this a redundant question. I've figured out how to use os.path.join to make a file or directory location prior to pickling something to it. But I have

Re: Pickle vs XML for file I/O

2006-08-02 Thread crystalattice
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, crystalattice > wrote: > > >> What are the problems you fear when using `shelve` by the way? > >> > > The ideas I got about shelve are mostly due to this thread: > > htt

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-01 Thread crystalattice
[EMAIL PROTECTED] wrote: > Hi all. I've been try to learn ruby for a few months but I'm about > ready to give up. The available books either assume a programming > background, or are out of date. Anyway, I think python may suit me more > due to its 'theres one way to do it' philosophy (hope the quo

Re: Pickle vs XML for file I/O

2006-08-01 Thread crystalattice
Simon Hibbs wrote: > I've recently gone through a similar evaluation of my options for > persisting data. Object serialization to pickles or XML is a very easy, > quick way of persisting data but it does have drawbacks. I'm not a > professional developer, so if there are errors in my analysis, I'd

Re: Pickle vs XML for file I/O

2006-08-01 Thread crystalattice
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, crystalattice wrote: > > > On Mon, 31 Jul 2006 14:35:39 -1000, Simon Forman <[EMAIL PROTECTED]> > > wrote: > > > >> What kind of trouble were you having with pickle? > > >

Re: Pickle vs XML for file I/O

2006-07-31 Thread crystalattice
On Mon, 31 Jul 2006 14:35:39 -1000, Simon Forman <[EMAIL PROTECTED]> wrote: > crystalattice wrote: >> I'm creating an RPG for experience and practice. I've finished a >> character creation module and I'm trying to figure out how to get the >> fil

Pickle vs XML for file I/O

2006-07-31 Thread crystalattice
I'm creating an RPG for experience and practice. I've finished a character creation module and I'm trying to figure out how to get the file I/O to work. I've read through the python newsgroup and it appears that shelve probably isn't the best option for various reasons. This lead me to try messi

Re: Inheritance error: class Foo has no attribute "bar"

2006-07-11 Thread crystalattice
On Sun, 09 Jul 2006 03:51:56 -1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 09 Jul 2006 04:24:01 +, crystalattice wrote: > >> I've finally figured out the basics of OOP; I've created a basic >> character >> creation class for my ga

Inheritance error: class Foo has no attribute "bar"

2006-07-08 Thread crystalattice
I've finally figured out the basics of OOP; I've created a basic character creation class for my game and it works reasonably well. Now that I'm trying to build a subclass that has methods to determine the rank of a character but I keep getting errors. I want to "redefine" some attributes fr

Re: first book about python

2006-07-08 Thread crystalattice
On Sat, 08 Jul 2006 14:41:52 -1000, IOANNIS MANOLOUDIS <[EMAIL PROTECTED]> wrote: > I want to learn python. > I plan to buy a book. I always find printed material more convenient than > reading on-line tutorials. > I don't know PERL or any other scripting language. I only know some BASH > progra