My custom designed GUI

More
12 years 11 months ago #41221 by BigJohnT
Replied by BigJohnT on topic My custom designed GUI
How did you force the glade widgets to be the correct shape and size?

JT

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #41223 by newbynobi
Replied by newbynobi on topic My custom designed GUI
Halo Piet,

where can I find the source code?

Norbert

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #41227 by pietvr
Replied by pietvr on topic My custom designed GUI
@ JT - I wrote a scale function so the widgets scales to any screen size. I used transparent event boxes instead of buttons. I had to tweak some of the GladeVCP code so the widgets such as the LED's will have scaled sizes.

@ Norbert and emcPT - I will tweak and clean up my code a bit, as it was done specifically for my machines. I also had to change some of the GladeVCP objects to suite my needs and they no longer work correctly in Axis, such as gremlin. Once done I will post the project.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #41232 by BigJohnT
Replied by BigJohnT on topic My custom designed GUI
Is the scale function part of the python file? I'd love to see it...

JT

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago - 12 years 11 months ago #41234 by pietvr
Replied by pietvr on topic My custom designed GUI
@ JT - Yes it is in the python file. I am uploading my project. In the bin folder is the python file craftsmancnc. In init it iterates through the screens and through each screens widgets and sets the sizes to scale.

I am sure that my Python can be tidied up a lot as I am a Delphi programmer and this was my first Python project. What a learning curve :silly:

@Norbert and emcPT here is the project - please note that to run this you will need to run the gladevcp_update in the pymodules folder and your original gladevcp files and folders will be renamed to ???-Ver1 so you can reset them after playing around with this.

Oops...look like file is to big to attach....here is a link craftsmancnc.zip
Last edit: 12 years 11 months ago by pietvr.
The following user(s) said Thank You: cncbasher, nkp, emcPT, aer73, BosniaCNC, eFalegname, emilvv, Ilya

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #41254 by cmorley
Replied by cmorley on topic My custom designed GUI
The mach cross over crowd should be happy with that ! nice job.

What specifically did you do to gremlin?

You can also build a similar screen idea (placing gladevcp objects on top of a painted background) with less programming.
It's a pain to place the objects as you can't see the background and if you resize it the objects, they are not scaled right, so there are limitations.

I assume with event boxes for buttons you don't get nice button movements ?

Chris M

Please Log in or Create an account to join the conversation.

Time to create page: 0.136 seconds
Powered by Kunena Forum