Curently i am building a windows type gui with a tft screen, and made many classes for it. i can create a window app like
Code: Select all
#to create
win = Window(50,50,100,100,color.white,"TestWindow",tft,touch)
text1 = textView(win,win.centerX,win.top+10,fonts.sans9,color.red,"Hello World")
button = Button(win,win.centerX,win.bottom,"TestButton")
#to show them
win.show()
text1.show()
button1.show()
Code: Select all
win = Window(50,50,100,100,color.white,"TestWindow",tft,touch)
win.addObject(textView(win.centerX,win.top+10,fonts.sans9,color.red,"Hello World"))
win.addObject(Button(win.centerX,win.bottom,"TestButton"))
win.show()
thanks