60 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
57
views
When can I reliably query the preferred size of a GTK4 Entry upon
I have the following PyGObject code as an MWE:
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import Gtk, GLib
class FontSizeApp(Gtk.Application):
def __init__(...
0
votes
0
answers
62
views
Touch scrolling causes persistent text field cursor and segmentation fault in entry widgets
I have a sample GTK4 application where a list of entries is arranged vertically in a scrolled window. When I test the application using a mouse by continuously scrolling the window, the app does not ...
1
vote
2
answers
469
views
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?
1
vote
1
answer
377
views
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.
0
votes
0
answers
215
views
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 ...
0
votes
1
answer
1k
views
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 && ...
1
vote
0
answers
197
views
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 ...
8
votes
1
answer
4k
views
Styling all GtkEntry widgets with CSS using Python3 PyGObject
I'm developing a GUI with PyGObject and am trying to style all the entry widgets. From this post I get the impression that I should be able to create a CSS style that would apply to all GtkEntry ...
1
vote
1
answer
283
views
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....
2
votes
1
answer
2k
views
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 ...
3
votes
1
answer
2k
views
How to set Placeholder text in Gtk.TextView
I have been using Gtk Entry till now which offers set_placeholder_text method to set a placeholder text in it however, looking in the documentation , I found no such method for TextView .
Is there ...
1
vote
0
answers
303
views
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",
...
1
vote
1
answer
750
views
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 ...
0
votes
1
answer
580
views
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?
1
vote
1
answer
1k
views
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 ...