[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
|