2016-02-11, 16:23
(2016-02-11, 16:06)Roman_V_M Wrote:(2016-02-11, 12:23)Harvinder Wrote: Hi guys,
Im new to Python GUI with PYXBMCT, I've managed to created the layout with the buttons and images etc exactly where I want them to be etc. The part I'm stuck on is making the buttons do something.
Im using the self.connect(self.example_button, lambda: XXXXXXX) functions but not quite sure how to use it?
I have a horizontal navigation menu at the top and when you click the first button on the left I want it to display content such as image/button/info in the blank space below, I believe this is called multi-frame/window but how do I go about it?
If anybody could help me Id appreciate it allot.
Ive also looked at youtube tutorials for tkinter and tried to apply the method to pyxbmct but can't get it to work.
Thanks in Advance.
Have you read the documentation and examples for PyXBMCt? connect method accepts a function/method object that you want to execute if a Control is activated. lambda is used in special cases and you need to understand what you are doing.
With PyXBMCt you can emulate tabbed layout by creating sets of controls that are shown/hidden when a "tab" button is clicked, using their setVisible() methods.
Also, PyXBMCt is closer to PyQt as the name implies.
Hi Roman, thanks for the reply.
Yes I have viewed the startup guide and the documentation over at: http://romanvm.github.io/PyXBMCt/
I have created "Buttons" for the horizontal navigation at the top using "self.example_button = pyxbmct.Button('example')" refer to the image below:
EXAMPLE IMAGE
I will watch some tutorials on PyQt as see If I can get the buttons to work.
Thanks again.