It is currently Fri May 24, 2013 4:43 pm

All times are UTC - 7 hours [ DST ]




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: How to use buttons to navigate in Python?
PostPosted: Wed Mar 14, 2012 9:22 am 
LCD?

Joined: Wed Mar 14, 2012 9:19 am
Posts: 1
Hi All,

I have a GLK19264-7T-1U and I have read through the AppNotes for the Python language but am still lost as to how to code the buttons to scroll up and down using Python as the coding language. I am not familiar with C++ or any of the other languages so looking at those AppNotes have not been very helpful for me.

If anyone can help I am willing to learn! If you have any examples I would love to see them since I learn best from examples.

Thank you for help help!
Eric


Offline
 Profile  
 
 Post subject:
PostPosted: Wed Mar 14, 2012 1:24 pm 
Matrix Orbital
Matrix Orbital

Joined: Fri Aug 17, 2007 10:58 am
Posts: 755
Location: Matrix Orbital
Hi Eric,

I'm glad you've had a look at the Python AppNote as it has most of the groundwork laid for a menu structure, unfortunately, you'll have to write a little more code.

You'll probably want access to the key read, so you might modify that function to return a value or alter one passed to it. A type of switch statement may then be used to determine the action to take based on the key press. The main program will probably poll the unit continually for a key press. Finally, you'll update the screen with a new bitmap or text strings based on the key press.

I hope you can understand that we have made the GLK19264-7T-1U as easy to use as possible, and I will look at expanding the Python AppNote in the future, but we have to leave something for the developer to do.

Thanks,
Troy



_________________
Troy Clark
Technical Support
Matrix Orbital
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: