ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
[Pythoncard-users] added rpn calculator sample
by Kevin Altis other posts by this author
May 5 2002 7:27PM messages near this date
RE: [Pythoncard-users] codeEditor sample | [Pythoncard-users] The Joy of PythonCard
Randy Lea has written an RPN (Reverse Polish Notation) calculator in
PythonCard. I've checked it into cvs

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pythoncard/PythonCardPrototyp
e/samples/rpn/

I'll let Randy tell you more about it if he likes and answer any questions
you might have about his sample.

Congratulations Randy!

The one thing to be aware of is that it uses the RightTextField component
based on wxRightTextCtrl, a contrib to wxPython. Apparently, this control
only displays correctly on Windows and even there has a few display
glitches. There has been some talk on wx-dev and wx-users about supporting
alignment in wxTextCtrl which is really the best solution, but unless that
happens, RightTextField sort of works.

If you want to give up right-alignment, the only change necessary is in
rpn.rsrc.py, replace

{'type':'RightTextField',

with

{'type':'TextField',

save and you're set. No other changes to the resource or source code are
necessary.

ka


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@[...].net
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved