PyGObject -- Gtk.ComboBox with Gtk.TreeStore

2019-02-09 Thread c.buhtz--- via python-hackers-list
With PyGObject I have problems using a Gtk.ComboBox with tree like data. I opened a question on StackOverflow for it. Would be nice if some of you could have a look at it. https://stackoverflow.com/q/54607596/4865723 ___ python-hackers-list mailing list

PyGObject: modify icon contest for ToolButton

2019-02-13 Thread c.buhtz--- via python-hackers-list
I read about Gtk.IconTheme - very nice. https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/IconTheme.html I want to use some special icons on Gtk.ToolButton() Gtk.Toolbar(). But when using 'icon_name' in a ToolButton it looks like that only the 'Action' context of is used. When I try a name from a

Re: PyGObject: modify icon contest for ToolButton

2019-02-13 Thread c.buhtz--- via python-hackers-list
There must be more restrictions because of Gtk.ToolButton(). I tried some more icons I can found in /usr/share/icons/Tango/*/actions But they are not shown. Why? On 2019-02-13 13:48 "c.buhtz--- via python-hackers-list" wrote: > I read about Gtk.IconTheme - very nice. > https:/

[PyGObject] Gtk.TreeView: compute max rows in visble area

2019-02-14 Thread c.buhtz--- via python-hackers-list
Before filling a Gtk.TreeView with content I want to know how much rows (of same height) I can put into it before reaching the invisible area where I have to scroll into. I want to offer my users a TreeView not as a scrollable list but as a page like view. I DuckDuckGo'ed around and also read the

[PyGObject] invisible paths between Gtk.TreeView.get_visible_range() ?

2019-02-14 Thread c.buhtz--- via python-hackers-list
The documentation about Gtk.TreeView.get_visible_range() says: "Returns the first and last visible path. Note that there may be invisible paths in between." I have stomachache about the fact that ther

Re: [PyGObject] invisible paths between Gtk.TreeView.get_visible_range() ?

2019-02-14 Thread c.buhtz--- via python-hackers-list
Mystic... mytree.get_visible_range() returns always None no matter how much rows are in it. Why? On 2019-02-14 10:21 "c.buhtz--- via python-hackers-list" wrote: > The documentation about Gtk.TreeView.get_visible_range() says: > > "Returns the first and last visible path

Re: [PyGObject] invisible paths between Gtk.TreeView.get_visible_range() ?

2019-02-14 Thread c.buhtz--- via python-hackers-list
ws are in it. > > Why? > > On 2019-02-14 10:21 "c.buhtz--- via python-hackers-list" > wrote: > > The documentation about Gtk.TreeView.get_visible_range() says: > > > > "Returns the first and last visible path. Note that there may be > > inv

detect end of a window-resize

2019-02-15 Thread c.buhtz--- via python-hackers-list
There are some questions and solutions in the web how to detect the ending of a window-resize. I mean the situation when the user drags the border of a window with its mouse and change the size that way. This causes hundreds of resize-events (e.g. 'size-allocate'). But most of the time only the fi

Re: [PyGObject] Gtk.TreeView: compute max rows in visible area

2019-02-16 Thread c.buhtz--- via python-hackers-list
I am not absolute sure but I think I got the solution. Here is the code snipped def MyTreeView(Gtk.TreeView): ... def compute_rows_per_page(self): # height of first cell col = self.get_column(0) rect = col.cell_get_size() renderer = col.get_cells()[0]

PyGObject - context menu

2019-02-23 Thread c.buhtz--- via python-hackers-list
Hello, it is unclear for me how I should create and use context menus (by right clicking with mouse). There are a lot of outdated or C-based examples on the web. Also the documentation has a lot of "popup" elements but marked them as deprecated. I opened a StackOverflow question for it with exam

[PyGObject] TreeView: edit a cell like in excel

2019-02-26 Thread c.buhtz--- via python-hackers-list
I want to make the user renaming text-items in a Gtk.TreeView. Like you would do in a GUI-file-manager when pressing F2. I mean the edit-field (Gtk.Entry?) should be layed over the item itself while editing. Is this possible? I tried (On Linux, XFCE, with Gtk3.0) Gtk.TreeView.set_cursor_on_cell(

Re: [PyGObject] TreeView: edit a cell like in excel

2019-02-27 Thread c.buhtz--- via python-hackers-list
Hi Reuben, thanks for your answer. On 2019-02-26 07:16 Reuben Rissler wrote: > On 02/26/2019 04:43 AM, c.buhtz--- via python-hackers-list wrote: > > I want to make the user renaming text-items in a Gtk.TreeView. > Is this a multi column Treeview? If so, which column text should be

Re: [PyGObject] TreeView: edit a cell like in excel

2019-02-27 Thread c.buhtz--- via python-hackers-list
On 2019-02-27 07:14 Reuben Rissler wrote: > On 02/27/2019 03:15 AM, c.buhtz--- via python-hackers-list wrote: > > self.set_cursor_on_cell(path, col, ren[0], True) > I use self.set_cursor(path, col, True) It is different. In that case absolutely no edit fi

[PyGObject] access to systems color palette

2019-03-05 Thread c.buhtz--- via python-hackers-list
Is there a way to read the systems colors? MS Windows and all GNU/Linux window managers can customize there appearance: fonts, fore-/background colors, etc I want to ask (a most platform independent way) the system what is your highlight color? e.g. when a menu entry is marked Can I access infor

[PyGObject] Make a button as small as possible

2019-03-14 Thread c.buhtz--- via python-hackers-list
I would like to make a Gtk.Button or Gtk.ToolButton as small as possible. It should fit its label - not more. But I can not figuring it out. I created an MWE on StackeOverflow for that. https://stackoverflow.com/q/55111383/4865723 ___ python-hackers-list

Re: [PyGObject] Make a button as small as possible

2019-03-15 Thread c.buhtz--- via python-hackers-list
> I created an MWE on StackeOverflow for that. > https://stackoverflow.com/q/55111383/4865723 There is an answer now on this question. It recommends CSS. It feels abstact to me but works in this example. The problem is that I don't know how to add this CSS to a specific button because I don't want

[PyGObject] Always visible and sticky columns in Gtk.TreeView

2019-03-28 Thread c.buhtz--- via python-hackers-list
I want to have one or more of the last/right columns in a Gtk.TreeView always visible and sticky. I don't see how to do this. Is there an inbuild way for this? Or do I have to catch a resize event and handle that myself? I opened a question on StackOverflow with screenshots and example code. http

[PyGObject] relief statusbar

2019-04-21 Thread c.buhtz--- via python-hackers-list
I am using PyGObject (Gtk 3.0) with Python3 on Debian stable with XFCE desktop environment. When I use `Gkt.Statusbar` it appears in a flat style. Is there a way to make it more relief like in other applications (e.g. mousepad, midori, or most of the ms windows applications)? __

PyGObject: Update progressbar from another thread or process

2019-04-30 Thread c.buhtz--- via python-hackers-list
I have an still open question on stackoverflow about "Update a Gtk.ProgressBar from another thread or process". The solutions are not validated. https://stackoverflow.com/q/55868685/4865723 Would some of the PyGObject core developers look around and give an "official" statement about it pleas

settings dialog

2019-05-01 Thread c.buhtz--- via python-hackers-list
I am looking for a PyGObject settings dialog like this https://i.stack.imgur.com/UyF1s.png I list of sub-pages on the left and the current selected page on the right. A Gtk.Notebook doesn't fit my needs because it only works horizontal. Isn't there a widget like that?

PyGObject on Windows only with MINGW?

2019-05-11 Thread c.buhtz--- via python-hackers-list
Hello, I tried to find out how to install PyGObject (Gtk3 for Python3) on Windows 10 and found this page about this. https://pygobject.readthedocs.io/en/latest/getting_started.html#windows-getting-started It looks like that PyGObject only runs with mingw? Does it mean that my application need

PyGObject with Thonny: missing Microsoft Visual C++ Build Tools

2019-05-12 Thread c.buhtz--- via python-hackers-list
I tried to install "PyGObject" package via "Thonny" IDE on Windows 10. This IDE brings its own package manager with it. But building of PyGObject doesn't work because of missing "MS Build Tools". I downloaded the installer of it but there are to many choices. I definitly can not install of what th

[PyGObject] Pickle a GdkPixbuf.Pixbuf object

2019-05-19 Thread c.buhtz--- via python-hackers-list
Hello, I have a creepy problem. I need to (un)pickle a GdkPixbuf.Pixbuf object because it is shared/transfered between Processes via the multiprocessing.Queue object. But the object is "modfied" while the pickle process. Before it is like this after pickeling it is like this I opened a Stack

Multiprocessing.Queue with hugh data causes _wait_for_tstate_lock

2019-05-27 Thread c.buhtz--- via python-hackers-list
Hello, on StackOverflow I opend a detaillied descriped question for my problem. https://stackoverflow.com/q/56321756/4865723 I got exceptions in `_wait_for_tstate_lock` when sharing big data between a Process and a Thread via multiprocessing.Queue. I also have an idea where the problem could

GdkPixbuf: ICO files with multiple sizes

2019-06-10 Thread c.buhtz--- via python-hackers-list
This question is about ico-files which contain more then one icon usually in multiple sizes. The current example can be found here. I am not sure if the problem is me or the ico file itself is not valid. https://www.jabref.org/favicon.ico In Firefox the icon looks like expected. When I open the

Re: GdkPixbuf: ICO files with multiple sizes

2019-06-16 Thread c.buhtz--- via python-hackers-list
Does no one has an idea about this? Did someone test the ico file I linked, too? Can my problem be reproduced by others? On 2019-06-10 14:17 "c.buhtz--- via python-hackers-list" wrote: > This question is about ico-files which contain more then one icon > usually in multiple

Re: GdkPixbuf: ICO files with multiple sizes

2019-06-17 Thread c.buhtz--- via python-hackers-list
Am 16.06.2019 23:22 schrieb Benjamin Berg: seems like a bug in the GdkPixbuf image loader code. Thanks for the hint. There are some open bugs related to this problem. Currently it is unclear for me if maybe the problem is still fixed in the current upstream version. I see no way to test it.

Re: GdkPixbuf: ICO files with multiple sizes

2019-06-17 Thread c.buhtz--- via python-hackers-list
I also opened a question to the Gtk core devs about it. ___ python-hackers-list mailing list python-hackers-list@gnome.org https://mail.gnome.org/mailman/l

PyGObject: Segmentation with signal “activate link” in a markup-text label

2021-03-05 Thread c.buhtz--- via python-hackers-list
X-Post: https://stackoverflow.com/q/66483316/4865723 Hello together, I observe a segmentation fault when using a hyperlink (as markup text) in a Gtk.Label. I am not sure if I use Gtk the wrong way here or if this is a bug. Details and an MWE can be found on StackOverflow: https://stackoverflo