Setting initval of a spinbox in hal

More
13 years 6 months ago - 13 years 6 months ago #33433 by ArcEye
Hi

Glad you like the changes.

There is a patch at Sourceforge awaiting decision, but the file does not appear to have changed since 2007, so you can just re-name your old copy to be safe and copy it over.

Keyboard and mouse focus is another subject altogether.
The python gtk / Tk used with Axis and pyVCP does have some issues with focus in embedded widgets.

I am a C programmer not python, I will stay away from that area, the changes I have made are quite simple. :P

regards
Last edit: 13 years 6 months ago by ArcEye.

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

More
13 years 6 months ago - 13 years 6 months ago #33434 by bigalex
Hi ArcEye.
I clearly understand that my wish is not as easy as speak . :(
Anyway what you did is really appreciated and should be fit as a part of the next release.
I red about your skill in C programming language in some other threads for create HAL components and you should be a good candidate
to make " a good tutorial on how to create an HAL component using comp and C lamguage ".
A widget that is still missing is a label that can change his "caption" or "text" from HAL logic using a pin .
But maybe this is OT.

Thanks

bigalex :blink:
Last edit: 13 years 6 months ago by bigalex.

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

More
13 years 6 months ago #33446 by ArcEye

A widget that is still missing is a label that can change his "caption" or "text" from HAL logic using a pin .


It would be nice just to have a simple way of changing a label text from On to Off for instance

When pyVCP was written I don't suppose it was envisaged what people might try to use it for.
It does a very good job of its prime purpose, a fairly simple virtual control panel.

You could trigger pre-defined text changes quite easily, so long as you can find a way to access the widgets text display mechanism.

But passing actual strings to hal pins, would have to use something like byte encoding to pass characters, which might be messy
and complicated.

I have in mind to try and find a good graphical debugger for python, something that will allow me to browse the structures and classes in the same way
that I can in C / C++.
If I can do that, I may make some progress figuring the best way to implement at least pre-defined label change.

regards

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

More
13 years 6 months ago #33448 by bigalex
Hi ArcEye.
Are you talking about an IDE for Python ?
Can I suggest to you Geany small and light and free ?
But I think you will find out some others with Google .
I'm just a Python beginner and no C language knowledge so I do not have the expertise to do this kind of stuff. :blush:
But I think that you and maybe Andy can help to implement pyVCP features.
I do not know if Anders Wallin was the Author of pyVCP but if yes why do not try to involve him ?

regards

bigalex :blink:

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

More
13 years 6 months ago #33450 by ArcEye
It's a debugger rather than an IDE I wanted.

I think I have found one, winpdb.
Looks like it should allow me to step through the execution and browse the structures, I'll see where it gets me.

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

More
13 years 6 months ago #33455 by BigJohnT
I'm watching to see what you find...

John

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

Time to create page: 0.428 seconds
Powered by Kunena Forum