GtkEntry — A single line text entry field
Questions tagged [gtkentry]
58 questions
1
vote
0 answers
Passing Entry widget as argument to signal handler in Gtkmm
I have created glade file GUI.glade and i want to submit the content of the Entry widget on clicking the button using Gtkmm. I made the pointer to entry widget global so that i can access it in signal handler. Can i pass the entry widget as argument…

Gambler
- 31
- 4
1
vote
2 answers
GTK - How to update gtktextview/gtkentry? #C
i am creating a basic GROUND CONTROL STATION for a CubeSat, dividing it in two parts: COMMANDS (with no problems) and TELEMETRY. I am using C code and GTK; in the telemetry windowt I need to show some info everytime a telemetry packet is received so…

geomerlin
- 11
- 2
0
votes
1 answer
Limit input into Gtk.Entry to numbers only
I am using GTK 4 with Python and have a Gtk.Entry widget which I would like to limit the characters which can be entered to numbers only. How do I do that?

Fred
- 12,086
- 7
- 60
- 83
0
votes
0 answers
python GTK entry: cursor to the left when the entry is empty
I am using a Gtk.Entry and writing from left to right (xalign==0.0).
When the entry is not empty, the cursor is to the right of the text (as expected):
But when the entry is empty, the cursor is on the right:
That is how I create the entry:
def…

Noa Kirsh
- 1
- 1
0
votes
1 answer
GTK - pango-critical error when disabling entry field
I am encountering the following error (twice) when I try to disable an entry field:
(SDS-CW:7145): Pango-CRITICAL **: 16:38:37.521: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed
(SDS-CW:7145): Pango-CRITICAL…

Jack Pollock
- 344
- 1
- 13
0
votes
3 answers
in pygtk how to edit content of an Entry object that added to MenuItem (On Run Time)
I want to create a MenuItem that an Entry shows on this to user can enter value to the entry widget.
This procedure is easy to implement but after showing this Entry it cant get cursor and user cant input text to it, help me to do it please.
i used…

M.javid
- 6,387
- 3
- 41
- 56
0
votes
1 answer
Transparent Floating GtkEntry
I want develop a game that can take multilingual input, including CJK characters. Is it possible to have a GtkDrawingArea fill the entire window and have a GtkEntry floating "on top" of it? Also is it possible to make the background and border of…

kaykun
- 2,247
- 2
- 24
- 37
0
votes
1 answer
pyGTK - gtk.Entry in gtk.Dialog Yields no Text
In pyGTK (2.22 - version is very important), I'm encountering the bug detailed below. I think it's a pyGTK issue, but I could be wrong and don't want to report a non-bug.
Basically, I am extracting text from a gtk.Entry() using .get_text(), and this…

new123456
- 873
- 1
- 12
- 21
0
votes
1 answer
How to simulate Enter key at gtk.entry to save info
I want one or several gtk.Entry reply to a button created by me (gtk.Button) instead of a enter key.
I´m using Python 2.7
Is it possible?

Zator
- 13
- 8
0
votes
2 answers
How to get the value of an entry in GTK+
I have a problem I need help with. I'm making a C program that will be able to encrypt and decrypt using either DES or RSA. For making a GUI mostly because the lack of a better option, I went with GTK, but I need some guidance on how to store text…

Tamás Lehoczky
- 3
- 1
- 2
0
votes
1 answer
sending fake event to GTKEntry
I'm using gtk-3.0 to create my simple UI and I want to send a fake event to GTKEntry via g_signal_emit(...) function.
Actually, I don't know, what parameters I should pass to this function.

Danial Alihosseini
- 101
- 1
- 9
0
votes
1 answer
GTK text entry updating programmatically
I would like to update a text entry on keypress event.
My scenario doesn't have a keyboard, so I am generating it programmatically
and trying to update text entry from keypress event handler.
On each key press, I need to update the text entry in…

tux tux
- 25
- 1
- 5
0
votes
1 answer
How can I get text from a dialog?
I need to get text from an entry in a dialog, like a login dialog (get the user and password), I've tryied to use 'gtk_entry_get_text' but I did something wrong or there's something else I could use.

Morena
- 3
- 1
0
votes
1 answer
gtk_entry_set_input_purpose not recognized
I found in the doc the function :
gtk_entry_set_input_purpose() to set the input-method of a gtkentry,
but when using it, gcc didn't recognize it, it gives me this error
implicit declaration of function ‘gtk_entry_set_input_purpose’…

younes zeboudj
- 856
- 12
- 22
0
votes
1 answer
gtk_entry_get_text: assertion 'GTK_IS_ENTRY (entry)' failed
I'm creating a small program with C++ and GTK 3 (just learning it), and i have had trouble with this. So, i isolated the problematic part.
It is suposed to get the entry and print it when the button is clicked.
This is the code:
#include…

Ffff
- 73
- 1
- 3
- 14