def Button_14_onCommand(className,widgetName): OpType = Fun.GetUIData(className,'Label_2','OpType') Count = Fun.GetUIData(className,'Label_2','Count') MidCount = Fun.GetUIData(className,'Label_2','MidCount') if OpType == 1: Count = MidCount + Count elif OpType == 2: Count = MidCount - Count elif OpType == 3: Count = MidCount * Count elif OpType == 4: Count = MidCount / Count Fun.SetUIData(className,'Label_2','Count',Count)
def Button_12_onCommand(className,widgetName): Count = Fun.GetUIData(className,'Label_2','Count') Count = Count * 10.0 Fun.SetUIData(className,'Label_2','Count',Count)
def Button_13_onCommand(className,widgetName): Fun.SetUIData(className,'Label_2','Count',0.0) Fun.SetUIData(className,'Label_2','MidCount',0.0) Fun.SetUIData(className,'Label_2','OpType',0)
def Button_18_onCommand(className,widgetName): MidCount = Fun.GetUIData(className,'Label_2','Count') Fun.SetUIData(className,'Label_2','OpType',4) Fun.SetUIData(className,'Label_2','MidCount',MidCount) Fun.SetUIData(className,'Label_2','Count',0.0)