Moving objects in a TK window
Moving objects in a TK window
(OP)
I use vtcl V1.6.0.a3 to create some TK windows.
I notice that when moving objects they move behind some other objects but move above some other objects.
Is there a way to specify for an object to move above or below some other object?
I notice that when moving objects they move behind some other objects but move above some other objects.
Is there a way to specify for an object to move above or below some other object?
RE: Moving objects in a TK window
RE: Moving objects in a TK window
RE: Moving objects in a TK window
Re: transparent backgrounds - not officially supported because X11 does not support it. Having said that, there is this example on the internet in python https://stackoverflow.com/questions/53021603/how-t...
RE: Moving objects in a TK window
Sorry, I should have included this originally.
I use vtcl with the place manager to generate the graphic parts of a window. Once positioned, there they stay. They do not move while running the program.
In the example the 'Lasts' label is sitting on top of the 'Charge' label and the 'Refresh' button. What I would like to do is place the 'Lasts' label underneath the other 2 widgets.
RE: Moving objects in a TK window
It appears that at the time of widget creation any widget created after any other widget will be on top of those widgets. So, it is purely which widget is created after any other widget to be on top.
To move a widget above another widget, in the program, just move the lines that create the widget after the other widgets. It is a pain to get into the code when using vtcl because the purpose of vtcl is to be able to create the widgets and positions and other options without getting into the code. But, I guess it can't do everything.
I would still like to be able to make the background of a widget transparent. If there is anyone out there who knows how to do that, it would be great.
RE: Moving objects in a TK window
The widgets can span several rows/columns so you can end up with all sorts. This is a lot easier to work out if you draw it out before coding it.
RE: Moving objects in a TK window
You did show a link where moving widgets while running the program was possible. I must admit I didn't follow the code in that example. However it's not while running the program I want to make the background transparent but while coding or moving the widget to place them where I want them initially.