Questions tagged as 'gtk'

1
answer

Background cairomm

I have a drawing where I paint like this: // ******** Drawing the background ********* \ // Setting the color for the background cairo_set_source_rgba(cr, 1, 1, 1, 1); // Setting a rectangle cairo_rectangle (cr, 0, 0, 200, 200); cairo_stroke_p...
asked by 15.11.2018 / 13:07
1
answer

Instanced properties vs in class, C orienting objects with glib (GTK +)

Without so many detours hopefully I can help with something that has me stranded a whole week, I have a serious confusion with GTK + and its object system, reading the documentation of the GNOME project I understood that uses GType to have a lis...
asked by 26.02.2018 / 20:16
0
answers

NameError: name '__callback' is not defined

I am trying to use gupnp (GNU library for UPnP and DLNA operations), using GObjectIntrospection: import functools import gi gi.require_version( 'GSSDP', '1.0' ) from gi.repository import GSSDP from gi.repository import Gtk __callback =...
asked by 12.12.2018 / 20:53
0
answers

Send several "entry" fields in a signal_callback

I am working on a project in gtk, in conjunction with C to create a simple login interface. In the first part of the login I only validate the fields and print them in the console, this way of sending more than one ENTRY in a callback I did i...
asked by 06.03.2018 / 22:56
1
answer

Show MenuBar when loading the program

In this example of a screen with menus, when I execute the code, first, the Menu does not appear at the top (in the title bar). import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk # gsettings set com.canonical.Unity alw...
asked by 27.04.2018 / 14:20
1
answer

Obtain values of a query prepared in sqlite

Trying to run the program generates the following error:    Query.val: 41.24-41.34: error: The name 'name' does not exist in the context of 'Sqlite.Statement?' The line where the error is generated is at the moment of obtaining the values...
asked by 26.02.2018 / 00:57
0
answers

Delay in Menu Pop-Up when I have the focus on DrawingArea

I have a Gtk :: ApplicationWindow class which is the main window and in a certain place I am painting a Gtk :: DrawingArea area. To handle the keyboard in the drawing area, I will pass the focus from the main window as follows: drawArea.grab_f...
asked by 27.11.2018 / 13:27
0
answers

How to configure codeblock so that it compiles in GTK3 and not in GTK2?

I am trying to modify the script when creating the project but it marks it as read only, basically I want to do this, but it does not let me edit it:    link I am not very knowledgeable about Ubuntu, editing it from terminal through sud...
asked by 27.03.2018 / 21:09
2
answers

Compile but not run. wxwidgets

How about. I am new using this tool. I'm trying to run a program in c ++, with the wxsmith plugin in code :: blocks. I recently installed wxwidgets, and I wanted to run a program with a single button, compiling it compiles without any problem...
asked by 28.05.2017 / 05:33