def test2(par=0): """ Тестируем класс icFrameDesigner. """ from ic.components.ictestapp import TestApp from ic.components import icframe app = TestApp(par) main_win = icframe.icFrame() frame = icFrameDesigner(main_win, component={'title': 'wxFrame Test', 'keyDown': 'print(\'keyDown in icFrame\')'}) main_win.Show(True) app.MainLoop()
def test2(par=0): """ Тестируем класс icFrameDesigner. """ from ic.components.ictestapp import TestApp from ic.components import icframe app = TestApp(par) main_win = icframe.icFrame() frame = icDialogDesigner(main_win, component={'title': 'wxDialog Test', 'backgroundColor': (255, 255, 255), 'keyDown': 'print \'keyDown in icFrame\''}) main_win.Show(True) app.MainLoop()
def test(par=0): """ Тестируем класс icTextField. """ from ic.components.ictestapp import TestApp import ic.components.icwxpanel as panel import ic.components.icframe as frame app = TestApp(par) frame = frame.icFrame(None, -1, {'keyDown': 'print(\'Frame ####-@@@\')'}) win = panel.icWXPanel(frame) ctrl = icTextField(win, -1, { 'pic': '999,999.99', 'position': (20, 20), 'changed': 'print(\'CHANGED\')' }) win.Bind(icEvents.EVT_KEY_DOWN_IC, win.BackPropKeyDownEvt, ctrl) frame.Show(True) app.MainLoop()