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] rpn calculator fix for add button
by Kevin Altis other posts by this author
May 12 2002 1:49AM messages near this date
[Pythoncard-users] [Fwd: [DB-SIG] GadflyB5 1.0.0 pr1 - SQL Relational Database in Python] | [Pythoncard-users] default apps on Windows, Mac, Linux?
Randy Lea's rpn calculator sample was missing a method call in the
on_PlusBtn_mouseClick handler. See the comment below.

    def on_PlusBtn_mouseClick(self, event):
        self.storeX()
        self._stack.add() # <- this line was missing
        # put X back into the result box
        self.components.result.text = str(self._stack.X)

I was actually using it today to do some calculations and the '+' button
wasn't working. Glad it was so easy to fix. Checked into cvs.

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