def onCreated(): ez.DumpControlTable() #SetFileDropHandler(GetControl('textfile').ctrl,onFileDrop) listview = ez.GetControl('table') listview.AddRow(["Anny", "18"]) listview.AddRow(["Bobby", "16"]) listview.AddRow(["Candy", "14"]) tree = ez.GetControl('tree') item = tree.AddRootItem("Item1") tree.AddItem("Item1-1", item) tree.AddItem("Item1-2", item) item = tree.AddRootItem("Item2") tree.AddItem("Item2-1", item) tree.AddItem("Item2-2", item) #ez.StartTimer(timerHandler,1000) ez.StartThread(threadHandler)
def onCreated(): #SetFileDropHandler(GetControl('textfile').ctrl,onFileDrop) listview = ez.GetControl('table') listview.AddRow(["Anny", "18"]) listview.AddRow(["Bobby", "16"]) listview.AddRow(["Candy", "14"]) ''' listview.AddItem( { "Name":"Anny" , "Age":"18" } ) listview.AddItem( { "Name":"Bobby", "Age":"16" } ) listview.AddItem( { "Name":"Candy", "Age":"14" } ) ''' tree = ez.GetControl('tree') item = tree.AddRootItem("Item1") tree.AddItem("Item1-1", item) tree.AddItem("Item1-2", item) item = tree.AddRootItem("Item2") tree.AddItem("Item2-1", item) tree.AddItem("Item2-2", item) ez.StartTimer(timerHandler, 1000) ez.StartThread(threadHandler) ez.StartTask(taskHandler)
def onRun(event): setStatusText("Started") table = ez.GetControl('list') rows = table.Select() for r in rows: ez.StartThread(imgsToHtmls, args=[r])