It is currently Tue Jul 23, 2019 1:08 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Helpful Gtk-Debugger found - usable for PB too!
PostPosted: Wed Dec 26, 2018 6:34 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Jun 26, 2014 9:17 am
Posts: 303
Location: Germany
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/Projects/GTK/Inspector?action=show&redirect=Projects%2FGTK%2B%2FInspector

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

_________________
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Helpful Gtk-Debugger found - usable for PB too!
PostPosted: Wed Dec 26, 2018 8:55 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1770
Location: Germany
Thanks :wink:

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / Event-Designer
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Helpful Gtk-Debugger found - usable for PB too!
PostPosted: Wed Dec 26, 2018 9:51 pm 
Offline
User
User

Joined: Sat Jun 23, 2018 5:21 pm
Posts: 99
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Helpful Gtk-Debugger found - usable for PB too!
PostPosted: Wed Dec 26, 2018 10:58 pm 
Offline
User
User

Joined: Sat Jun 23, 2018 5:21 pm
Posts: 99
OK!
I have not really got it yet, but when I go to the help menu at the terminal, I can see the "thing", via the entry: "Inspekteur" open.

Great thing!
I'll try to get more information.

Image

Are these all "text-label" in the depths of the "TreeViews"?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye