Found a bug, or at least unexpected behavior.
When creating radio buttons with CreateButton and grouping these in a panel (this is what I tried) it seems that it always selects the first available radio button. With Windows driver it doesn't select radio buttons at default.
In my situation I have a panel described as "Rendering mode". It contains 2 radio buttons: Software and OpenGL. Although I preselect the OpenGL button as the selected one with SetButtonState(render_opengl, True) the render_software radio button is being selected because it was created first. So when I get to my main loop checking out the EventSource() of EVENT_GADGETACTION it executes the code of the render_software radio button. Which changes the rendering mode in my configuration. After that it selects the render_opengl radio button, but it doesn't execute it's code.
So the application launcher is telling the user that OpenGL will be used (since it's selected), but it was actually told to use Software rendering.
I fixed this with calling SetButtonState render_software, False and SetButtonState render_opengl, False right after the buttons were created.
Wouldn't it be best if the GTK driver would behave like the other drivers? I didn't have this problem on Windows or with FLTK (I have other problems with that one :-)).
When creating radio buttons with CreateButton and grouping these in a panel (this is what I tried) it seems that it always selects the first available radio button. With Windows driver it doesn't select radio buttons at default.
In my situation I have a panel described as "Rendering mode". It contains 2 radio buttons: Software and OpenGL. Although I preselect the OpenGL button as the selected one with SetButtonState(render_opengl, True) the render_software radio button is being selected because it was created first. So when I get to my main loop checking out the EventSource() of EVENT_GADGETACTION it executes the code of the render_software radio button. Which changes the rendering mode in my configuration. After that it selects the render_opengl radio button, but it doesn't execute it's code.
So the application launcher is telling the user that OpenGL will be used (since it's selected), but it was actually told to use Software rendering.
I fixed this with calling SetButtonState render_software, False and SetButtonState render_opengl, False right after the buttons were created.
Wouldn't it be best if the GTK driver would behave like the other drivers? I didn't have this problem on Windows or with FLTK (I have other problems with that one :-)).