Questions tagged [gtkentry]

GtkEntry — A single line text entry field

58 questions
2
votes
2 answers

Gtk HeaderBar doesn't expand children

I'm using Gtk to build an application on Linux using Python 3. I'm trying to use a Gtk.HeaderBar. So far it's been working Ok, but it seems that I can't get it to expand it's child widgets. For example: As you can see above, I've tried putting my…
Barry Smith
  • 281
  • 1
  • 4
  • 16
2
votes
0 answers

How to make GtkEntry to stop reversing x alignment in RTL layout?

GtkEntry get his alignment property from xalign parameter. but when you start typing in some RTL language (ex. Arabic) it reverses the alignment (this feature is also noted in GTK reference). how can I stop this feature and make the alignment…
mxamin
  • 51
  • 5
2
votes
2 answers

PyGTK - GtkEntry insert-at-cursor signal doesn't work

I'm trying to use GtkEntry.insert-at-cursor signal in my code, but it doesnt seem to work. def on_servername_activate(self, widget): output = StringIO.StringIO() servername = widget.get_text() …
boywithaxe
  • 286
  • 1
  • 12
2
votes
2 answers

gtkentry focus behaviour

Is there any existing mechanism for a GtkEntry to simply position the cursor at the end of the text when focused, rather than selecting its contents to be overwritten by the next key? It seems odd to have to add a signal handler to do something this…
Martin DeMello
  • 11,876
  • 7
  • 49
  • 64
1
vote
1 answer

How to remove caret cursor in Gtk entry

I have a Gtk entry. I need to completely remove this caret cursor, how can I do this? I searched for information about this for a long time but found only how to remove the blinking of Gtk entry.
Yaroslav
  • 11
  • 1
1
vote
0 answers

GTK entry save last value before exiting

I'm writing a gtk app using python. The application uses a lot of gtk entry, that are empty when i start the program. Is there a way to "save" the entry text when i close the application, and then restore them when i start the program again?
1
vote
0 answers

Syntax Highlighting Gtk.Entry on Python

I want to highlight the text of a Gtk.Entry, like this: The first solution that came to me was foreign drawing, but I would have to manage everything myself. Other thought I had was to extend Gtk.Entry and override just the drawing of the text, but…
Guerreiro
  • 143
  • 1
  • 11
1
vote
1 answer

Manage the cursor position in a GtkEntry

Python3-Gtk3 In a GtkEntry justified on the right if I replace the content the cursor is on the left of the string. I would like him to be right. The 'cursor-position' property is read-only. How to manage the cursor position? Thanks for your help.
phdb44
  • 45
  • 7
1
vote
0 answers

Why are my GtkEntry icon tooltips not working?

I have define a GtkEntry in GJS like so: let myEntry = new Gtk.Entry({ hexpand: true, placeholder_text: "Type here...", secondary_icon_name: "dialog-error-symbolic", secondary_icon_tooltip_text: "Send...", …
andy.holmes
  • 3,383
  • 17
  • 28
1
vote
1 answer

Gtk Widget add_child fails with error

I am trying to create a custom Gtk text entry. The basic idea is to put a button inside of a text entry. Here is a shortened version of my full code: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk builder =…
theGtknerd
  • 3,647
  • 1
  • 13
  • 34
1
vote
1 answer

GTK how to create 3 different filter for 1 Liststore

In GTK/Python, I'm trying to build an interface with nodes. This is photo of my interface I create one liststore and I want to filter different things. The user has to do two actions, first, he has to choose in the combobox the type of filter that…
Mia Chen
  • 173
  • 2
  • 10
1
vote
1 answer

Adding Gtk::Entry to Gtk::Dialog

I am adding a Gtk::Entry to Gtk::Dialog. Gtk::Dialog *dialog = manage ( new Gtk::Dialog() ); dialog->set_title("Add Text"); Gtk::Entry entry; entry.set_activates_default(true); entry.set_max_length(50); entry.set_text("hello…
Kamalpreet Grewal
  • 822
  • 1
  • 13
  • 28
1
vote
1 answer

"preedit-changed" event in python gtk.Entry does not work

I'm trying to make my gtk.Entry accept only numbers. At first I tried to print something in my stdout as the event occurs, but as I ran my script nothing occurred when I entered something in my gtk.Entry (pygtk 2.24, python 2.7.2,…
John Smith
  • 23
  • 5
1
vote
1 answer

Prevent GTK Entry from hiding text input when pressing TAB

I've a fairly strange problem using GTK 3.0 on Windows XP, 32-bit edition and compiling with MinGW. I've developped a small popup for network configuration with three text entries which are populated by a conf struct (not being shown here). On first…
lucasg
  • 10,734
  • 4
  • 35
  • 57
1
vote
1 answer

C programming pointer conversions with GTK

It appears that in GTK you hold a reference to an object, for example like an GtkEntry, but you hold it with a pointer to a GtkWidget. For example GtkWidget* pointer = gtk_entry_new(); Then when you want to do something like set the text of that…
Matthew
  • 3,886
  • 7
  • 47
  • 84