In GTK, I can’t understand what answer needs to be configured, so that when I click on a user in the window I can get the X / Y coordinates of the click.
You are looking for a button-press-eventsignal GtkWidget.
button-press-event
GtkWidget
The event parameter in the callback usually gets the x and y element, which are the coordinates of the mouse. If you need an example, look at the gtk tutorial, there is an example code of a small drawing program where you can see how to handle mouse events
http://www.gtk.org/tutorial1.2/gtk_tut-23.html
Source: https://habr.com/ru/post/1759730/More articles:Connecting and managing background process input events - c ++how can i install php-json for php 4.3.3? - jsonWhat is the fastest way to build a 2d pixel data array using pygtk? - pythonHow to find Xpath? - xpathРазница между производительностью двух запросов sql? - performanceTricky RegionPlot Question (Mathematica) - wolfram-mathematicaretrieve data from aspnet_Profile - asp.netWhy is there no C # compiler on win32 compiler? - compiler-constructionIphone mask color: clear background color - objective-csqlalchemy - double polymorphic inheritance problem - polymorphismAll Articles