UI in QPython

95 views
Skip to first unread message

Hosam Bheri

unread,
Jul 6, 2018, 1:31:34 PM7/6/18
to QPython
Hello QPython 
Please i need to know how  i can create UI in QPython With example
Thank you QPy

QPython Support

unread,
Jul 9, 2018, 1:21:07 AM7/9/18
to qpy...@googlegroups.com
Dear User,
You can look into the above link to find your answer there are variety of QPython courses that can teach you alot
QPYTHON TEAM

--
You received this message because you are subscribed to the Google Groups "QPython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qpython+unsubscribe@googlegroups.com.
To post to this group, send email to qpy...@googlegroups.com.
Visit this group at https://groups.google.com/group/qpython.
To view this discussion on the web visit https://groups.google.com/d/msgid/qpython/0ccda6d7-46ea-430e-aee9-f7774ff3e031%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lukasz T

unread,
Jan 12, 2019, 11:12:02 AM1/12/19
to QPython
Hi, you can create UI on your android device exacley the same way as you would do it in java. Google how to create android layout. Learn layout types LinearLayout or RelativeLayout then add some Views to it like TextView, Button, ImageView or ProgressBar. You can check this out https://developer.android.com/guide/topics/ui/declaring-layout. Scroll down a bit copy layout to your python project as multiline string like that:
mylayout="""<?xml version= ...
and """ on the end.
Then display this layout on screen using fullShow(mylayout). You can learn about building blocks and its attributes on same web if you like. Showing layout is one thing, but you need to recieve events from it like button clicks or progress bar movements. You have to use eventWait facade to know whats user did on screen and fullSetProperty to make some changes to your Views, TextView for example and on the end use fullDismiss to make your UI disapear
Reply all
Reply to author
Forward
0 new messages