|
From: Sommer, C. <cs...@in...> - 2009-04-20 15:08:27
|
I have created a Python-Card application that uses a Spinner and a Slider to control the same value. When I update the Spinner, I want the Slider updated, and when I update the Slider I want the spinner updated.
My first attempt to synchronize these 2 objects resulted in something that when I worked the slider, the slider never released the mouse and I had to kill the application. I modified the slider to send a "command" and I now have a working program.
In the broken version I used the event
def on_gainPotSlider2_mouseUp(self,event):
In the working version I use the command
def on_sliderAction_command(self,event):
This example, on startup prior to any PythonCard code executing,
uses the console input to decide which version of the program to run.
So gang, what did I do wrong the first time?
Thanks Chuck
Chuck Sommer
Insight Technology Inc.
CS...@In...
Tel: 603-551-6283
Cell: 603-234-2306
Warning: This Document may contain technical data that is subject to the control of the international traffic in arms regulations and/or the export administration regulations
|