at last, i managed it. the btk.gui module and the btk.gui.designer are working, at last i hope so . no python installation needed (images have been dropped), should run on any blender since 2.25-
features (gui toolkit)
-gui relative to text window size
-listener concept
-high level (panels and layoutmanagers and that stuff)
sorry for this comment in the source file, itās an example. you need to name a slider button ācolorSliderRedā in the gui builder or use another name in your source. it did not work anyway , bug, fixed. anddo not excuse yourself for my bugs
yougbatcat:
have a look at the manual (link below there is one), but for the start:
in the dark blue panel, change the VBorderLayout menu to HLayout and then untoggle the greedy button. now in the light blue panel select from the ācomponent typeā menu the ābuttonā. do this again and againā¦ your gui should get filled with buttons. now from the āselect componentā menu select āMainPanelā. play round with the greedy button and the align menus (again, dark blue panel). thatās the way it works.
ok, i am now gonna extend the documentation section on elektrolite.com, especially on the use of generated source.
so cute GUI
Bugs or just alpha version?
1.canāt select the Label, Fatlabel, Panel, Menu component with the mouse
2.āpanel itemsā menuās content does not change as the āselelect component to editā menu does
3.when change to other components, the Panel components disspears, maybe use a extra color to render a unselected Panel
yep, mouse listeners are not implemented yet, you can only select active components. for the menus: blender notifies only when you changed the menu selection, when you do that the menu should be selected. but this selection thing is the next feature to implement.
well, a good habit will resolve the 3rd question : change the name and color of components as soon as possible. the 3rd one means:
1.run btk, change VBorderLayout to VLayout, untoggle greedy
2.add a Button
3.add a Panel
4.add a Button again
5.now the new added panel_1 hides in the background
ah, now itās clear. i think panels could be made visible with a border also. the only purpose of a panel is to contain components, when it does not, it is very small, so theryāe not in the background, they are only small gaps when empty. when you select the created panel_1 in the first menu, you can add components to it.
i think it will be a good idea to place a text button next to the add component menu to name the component to be created, it is unhandy to move the mouse over the whole screen for that afterwards.
iām on holiday now, so i think iāll spend another nite on this
cu corban
ps: all properties (also the bgColor and the border color) will be saved to the source file and are visible in your gui.