I just stumbled across a useful tool for Gtk programming - and also PureBasic :
A debugger for Gtk3 dialog structures - also usable for PureBasic as I just noticed.
See this link: https://wiki.gnome.org/action/show/Proj ... FInspector
It works as described:
- Start it from the console with 'gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true'.
- Start your PB Gtk application (also possible from the PB-IDE)
- Activate the Gtk-debugger with <Shift><Ctrl><I>
- You can e.g. select CSSnodes in the ComboBox and use the arrow in the title bar to select your complete window, parts of it or another applications elements. The structure and settings will be displayed immediately.
Ingenious!
Regards, Charly
Helpful Gtk-Debugger found - usable for PB too!
Helpful Gtk-Debugger found - usable for PB too!
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
Re: Helpful Gtk-Debugger found - usable for PB too!
Thanks
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Helpful Gtk-Debugger found - usable for PB too!
Interesting!
Now all I have to do is fix a Python problem, because PyGTK does not work for me.
PyGtk can not be installed:
"pip install PyGTK":
Complete output from command python setup.py egg_info:
************************************************** ******************
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file. *
************************************************** ******************
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in / tmp / pip-build-pHnvVz / PyGTK /
But GTK3 runs with Python:
import gi
gi.require_version ('gtk', '3.0')
from gi.repository import Gtk
Now all I have to do is fix a Python problem, because PyGTK does not work for me.
PyGtk can not be installed:
"pip install PyGTK":
Complete output from command python setup.py egg_info:
************************************************** ******************
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file. *
************************************************** ******************
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in / tmp / pip-build-pHnvVz / PyGTK /
But GTK3 runs with Python:
import gi
gi.require_version ('gtk', '3.0')
from gi.repository import Gtk