Re: [Emc-users] dynamic glade ui's
> On 15 Feb 2021, at 23:12, Ralph Stirling > wrote: > > > Is this possible? Any suggestions or examples to help? I think that you can do anything you want to the widgets via the usual Gtk(?) interface. I have certainly moved widgets around inside a Glade tab using the python handler code. Axis itself hides and shows spindle and coolant buttons based on parsing the Hal file. Once you have the handle to the top level container you can find widgets by name and do anything you want to them. Or, you could create widgets from scratch Gtk != Glade. Or you could use QTVcp or QTPyVCP. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] dynamic glade ui's
You could write a user space hal component in Python. The Python program could use any tools you want to make a GUI. On Mon, Feb 15, 2021 at 3:12 PM Ralph Stirling < ralph.stirl...@wallawalla.edu> wrote: > I'm working on some ideas for a user interface for > a multichannel syringe pump. It will support up to > twelve syringes, and link any combination of them, > such that a "leader" channel has a dispense rate, > and "follower" channels have dispense ratio as a > percentage of the "leader" channel rate. > > I would like to be able to be able to add or remove > channels from within the gui itself, or at least > "gray out" disabled channels from the gui. I've made > custom panels for Axis before, but never one where > the widgets themselves could be changed from within > the running gui itself. > > Is this possible? Any suggestions or examples to help? > > The final system will just run with hal, no g-code > needed of course. I expect I'll need some python, > which is fine. > > Thanks, > -- Ralph > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > -- Chris Albertson Redondo Beach, California ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] dynamic glade ui's
On 02/15/2021 04:36 PM, Ralph Stirling wrote: I'm working on some ideas for a user interface for a multichannel syringe pump. It will support up to twelve syringes, and link any combination of them, such that a "leader" channel has a dispense rate, and "follower" channels have dispense ratio as a percentage of the "leader" channel rate. I would like to be able to be able to add or remove channels from within the gui itself, or at least "gray out" disabled channels from the gui. I've made custom panels for Axis before, but never one where the widgets themselves could be changed from within the running gui itself. Is this possible? Any suggestions or examples to help? The final system will just run with hal, no g-code needed of course. I expect I'll need some python, which is fine. I have done some apps on the Beagle Bone with Glade GUIs, no connection to LinuxCNC. I have pushed the xml about as far as it can go, with buttons that change color to show the mode, etc. I have never tried to change the xml on the fly, however. Graying out a button should be fairly easy, that is about the same as changing the background color. I have done some setups where there were "pages", in other words, you click on a button to "page" through a group of settings, and it repaints all the buttons on the screen with different values for that group. So, at atartup, the GUI shows settings for unit 1-16, and if you click a button, you can show the settings for unit 17-32, or 33-48, etc. You could probably put all 12 controls on one page, and have an on/off button for each. If the button is set to off, the rest of the controls for that unit would be grayed out. Jon ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users