Dynamicly styling a widget

2016-08-25 Thread Jim Heald
Hi there, I'm having a rough time figuring out how I can work with colors in Gtk+. I'll provide a rundown of what I'm trying to accomplish: I'm going to have a TreeView which will have Eventboxes as children. Each eventbox will have a property called 'course-type'. Based on this property, the ev

Re: Dynamicly styling a widget

2016-08-26 Thread Jim Heald
> On 08/25/2016 08:32 PM, Jim Heald wrote: > >> Hi there, >> >> I'm having a rough time figuring out how I can work with colors in Gtk+. >> I'll provide a rundown of what I'm trying to accomplish: >> >> I'm going to have a TreeView whic

Drag and drop widgets

2016-08-27 Thread Jim Heald
Hi, First, sorry if this has been asked before -- I don't know how to search the mailing list. I'm trying to figure out how I can drag and drop widgets between boxes. My end goal is I have 20 boxes as possible drag targets and the boxes are initially populated with Gtk.Frames that you can drag be

Re: Drag and drop widgets

2016-08-28 Thread Jim Heald
Hm, this might be what I'm looking for! Thank you very much! On Sat, Aug 27, 2016 at 9:53 PM, pelzflorian (Florian Pelz) < pelzflor...@pelzflorian.de> wrote: > Hi, > > There is GDL but I have no experience with it: > > https://git.gnome.org/browse/gdl/ > > It is what Anjuta uses. > > Regards, > F

Re: Drag and drop widgets

2016-08-28 Thread Jim Heald
So the only problem with this is the Gdl doesn't seem to be implemented in Python unfortunately. Any other ideas? On Sun, Aug 28, 2016 at 4:05 PM, Jim Heald wrote: > Hm, this might be what I'm looking for! Thank you very much! > > On Sat, Aug 27, 2016 at 9:53 PM, pelzfl

Parent receiving child's button press event

2016-08-30 Thread Jim Heald
Hello, I have a grid set up where some event boxes are attached. Each eventbox (which we'll call a column) contains a box with children (which we'll call tiles) that are also eventboxes. What I want is for right clicking a tile to produce one menu (Edit/Delete) whereas right clicking an empty spa

Re: Parent receiving child's button press event

2016-08-30 Thread Jim Heald
ug 30, 2016 at 8:02 PM, Jim Heald > wrote: > >> Hello, >> >> I have a grid set up where some event boxes are attached. Each eventbox >> (which we'll call a column) contains a box with children (which we'll call >> tiles) that are also eventboxes

Make parent aware of drag and drop

2016-10-18 Thread Jim Heald
Hi, I have a slightly weird situation. I have two widgets that are both eventboxes, and I'm trying to make it possible to drag what I call a tile widget into a column. Basically, think I'm dragging a box from one column to another. My issue is I can now drag one tile to a column to get drag data

Re: Make parent aware of drag and drop

2016-10-18 Thread Jim Heald
> Signals.html#g-signal-emit > > On 10/19/16 00:40, Jim Heald wrote: > > Hi, > > I have a slightly weird situation. I have two widgets that are both > eventboxes, and I'm trying to make it possible to drag what I call a tile > widget into a column. Basically, think

Re: Make parent aware of drag and drop

2016-10-19 Thread Jim Heald
-signal-emit > > On 10/19/16 00:40, Jim Heald wrote: > > Hi, > > I have a slightly weird situation. I have two widgets that are both > eventboxes, and I'm trying to make it possible to drag what I call a tile > widget into a column. Basically, think I'm dragging a box

Find bottom of Gtk Grid

2016-11-17 Thread Jim Heald
Hello, I noticed that before tables were deprecated you used to be able to find their size, but it says in the documentation that a Gtk grid does not expose its size. Therefore, I am trying to implement a function to react to items being attached to the grid -- specifically get the widget's 'top-a

Re: GtkLinkButton question

2016-11-23 Thread Jim Heald
My guess is use CSS. If you want a Python example of how to use it (I'd type it out but I'm on the road) see https://github.com/steelcowboy/PyFlowChart/blob/master/pyflowchart/main.py (at the bottom). Hope this helps! Jim On Nov 23, 2016 10:01, "Igor Korot" wrote: > Hi, ALL, > Have a following

Non-blocking dialog

2017-08-09 Thread Jim Heald
Hello there! I'm writing a GTK+ application in C. In my application I'm running two commands that take a bit of time; in order to not make it appear that the program has just frozen, I am wanting to do the following: 1) run the dialog, which has a spinner widget 2) add to the dialog area a messag