Gtk.DrawingArea: Port to python3/gtk3

2012-09-12 Thread Patrick Shirkey
() if self.gc_background == None: color_background = colormap.alloc_color('#FF', True, True) self.gc_background = self.area.window.new_gc() self.gc_background.set_foreground(color_background)

Re: gtk apps on iOS/Android?

2012-09-10 Thread Patrick Shirkey
rt gtk to android or ios yet. probably inevitable though so if it's your thing than I'm sure you will be able to make something happen. -- Patrick Shirkey Boost Hardware Ltd ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: button background color in gtk3

2012-08-26 Thread Patrick Shirkey
tton, 10, 1, 1, 1); >> > gtk_widget_modify_bg(Bbutton, GTK_STATE_NORMAL, &colorRed2); >> > gtk_widget_modify_bg(Bbutton, GTK_STATE_PRELIGHT, &colorWht); >> > >> > >> > gtk_widget_show_all(window); >> > gtk_main(); >> > >> > return 0; >> > } >> > >> > >> > ___ >> > gtk-app-devel-list mailing list >> > gtk-app-devel-list@gnome.org >> > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list >> >> >> ___ >> gtk-app-devel-list mailing list >> gtk-app-devel-list@gnome.org >> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list >> > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > -- Patrick Shirkey Boost Hardware Ltd ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk3 + python : lookup_widget

2012-08-20 Thread Patrick Shirkey
On Mon, August 20, 2012 9:16 am, Tristan Van Berkom wrote: > On Mon, Aug 20, 2012 at 2:32 PM, Patrick Shirkey > wrote: >> >> On Mon, August 20, 2012 6:59 am, Tristan Van Berkom wrote: >>>The "lookup_widget()" paradigm comes from a very old time wh

Re: gtk3 + python : lookup_widget

2012-08-20 Thread Patrick Shirkey
On Mon, August 20, 2012 9:16 am, Tristan Van Berkom wrote: > On Mon, Aug 20, 2012 at 2:32 PM, Patrick Shirkey > wrote: >> >> On Mon, August 20, 2012 6:59 am, Tristan Van Berkom wrote: >>>The "lookup_widget()" paradigm comes from a very old time wh

Re: gtk3 + python : lookup_widget

2012-08-19 Thread Patrick Shirkey
e that deals with my use case. Basically I want to be able to modify the text in a label widget from a Entry or EventBox signal. I haven't found an example of that but if anyone knows of one that would be very helpful. -- Patrick Shirkey Boost Hardware Ltd > Cheers, >

gtk3 + python : lookup_widget

2012-08-19 Thread Patrick Shirkey
cmi_command = self.get_text() messages.set_text(cmi_command) print "command entered: ", args[0] -- Patrick Shirkey Boost Hardware Ltd ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Semi-Transparent Window-Background with Gtk(mm) and Cairo

2011-10-16 Thread Patrick Bichler
R_SOURCE); 5. cairo_paint (cr); 6. cairo_destroy(cr); this code doesnt give me any visual change (also tried with changed the layout variable (fix) to the window variable => also doesnt work) any idea how i can fix that? gtk version is gtkmm-3.0 ---

interested in gtk+ project development

2011-02-15 Thread Patrick Noble
Hey All, My names Patrick Noble, and was hoping for a few pointers... I am interested in learning about and helping out in a development project such as Glade or GTK+, and was wondering if my experience level makes this pointless. I am currently learning through C, and am fairly confident in its

Application development books (OT?)

2009-09-11 Thread Patrick
examples and strategies would really help. Could anyone suggest something that would help me to plan an application? I can manage with the specific pieces of code, It's the general layout that I will probably fail with. Thanks in advance-Pa

Re: "widget_class->event" not working

2009-08-21 Thread Patrick M. Rutkowski
I figured it all out, and wrote it up in an article here: http://www.rutski89.com/dynamic/journal.html?name=gtkwidget Sleepiness was already hitting hard while banging away at the keyboard, so please do let me know if you see any mistakes. -Patrick On Fri, Aug 21, 2009 at 3:58 AM, Patrick M

Re: "widget_class->event" not working

2009-08-21 Thread Patrick M. Rutkowski
ION_NOTIFY events, or even mouse button press events. Here's another test case to instated illustrate that problem. This time, "IT WORKS!" only prints if the event is somehow mouse related: http://www.rutski89.com/static/mouse_test.c See if you can get that one to print, I can't -

Re: "widget_class->event" not working

2009-08-20 Thread Patrick M. Rutkowski
ne of text, you will have solved my problem. No cheating, -Patrick P.S. Copy-pasteable compiler command for ease of use: gcc -Wall -Wextra -Werror -pedantic-errors -std=c89 -ggdb -O0 `pkg-config --cflags --libs gtk+-2.0` event_test.c On Fri, Aug 21, 2009 at 12:02 AM, Patrick M. Rutkowski wrote

Re: "widget_class->event" not working

2009-08-20 Thread Patrick M. Rutkowski
tatic/squery.txt So why isn't my default handler any_event_r() executing? -Patrick On Thu, Aug 20, 2009 at 9:48 PM, Yu Feng wrote: > The default signal handler is not invoked if any of the customized > signal handler returns TRUE or something. > Check if there are any handlers conne

Re: "widget_class->event" not working

2009-08-20 Thread Patrick M. Rutkowski
dy has any tips that would be great, as I might do it wrong and it might take me a while. -Patrick On Thu, Aug 20, 2009 at 9:48 PM, Yu Feng wrote: > The default signal handler is not invoked if any of the customized > signal handler returns TRUE or something. > Check if there are any hand

Re: "widget_class->event" not working

2009-08-20 Thread Patrick M. Rutkowski
GTK problem. -Patrick On Thu, Aug 20, 2009 at 8:50 PM, Brian J. Tarricone wrote: > On 08/20/2009 05:36 PM, Patrick M. Rutkowski wrote: >> I've got the following code: http://www.rutski89.com/static/gtkevent.cpp >> >> I do indeed do this: >> >> widget_clas

"widget_class->event" not working

2009-08-20 Thread Patrick M. Rutkowski
I've got the following code: http://www.rutski89.com/static/gtkevent.cpp I do indeed do this: widget_class->event = &any_event_r but then any_event_r() never subsequently get's called, and I'm certain that the "widget_class->event = &any_event_r" line really does execute. Any suggestions? _

Re: Separator not being a darned separator!

2009-05-06 Thread Patrick M. Rutkowski
ee if it's already fixed there before reporting. Apologies for not posting sooner that the solution had already been found, -Patrick On Wed, May 6, 2009 at 8:45 AM, David Grundberg wrote: > gtk-app-devel-list-requ...@gnome.org skrev: >> >> Message: 1 >> Date: Tue, 5 May 200

Separator not being a darned separator!

2009-05-05 Thread Patrick M. Rutkowski
Someone please help a GTK+ newbie out, I can't make any sense of this: http://www.rutski89.com/static/taskbook-sep.jpg Glade says it's of class GtkSeparatorMenuItem, but it doesn't show up as such in the actual app. You can find the source code here: http://www.rutski89.com/static/taskbook-sep.ta

How to use Quarks?

2009-01-03 Thread Patrick Braga
ve no idea when this could be applied. I don't necessarily want code examples, just something like "if you want to do this then you could use quarks to..." Thanks! Patrick Braga http://theunixgeek.blogspot.com ___ gtk-app-devel-list m

Re: Learning Glade

2008-04-26 Thread Patrick Braga
Thanks - the code included in those docs seem helpful. I'll try them out. On Sat, 2008-04-26 at 09:51 -0300, Tristan Van Berkom wrote: > On Sat, Apr 26, 2008 at 7:47 AM, Patrick Braga > <[EMAIL PROTECTED]> wrote: > [...] > > > On 26/04/2008, Patrick Braga <[EMAI

Re: Learning Glade

2008-04-26 Thread Patrick Braga
put widgets there, then you will get > the layout you want. > > Yours faithfully, > > Alvis Koon > > On 26/04/2008, Patrick Braga <[EMAIL PROTECTED]> wrote: > > Hi, I'm a relative newcomer to GTK+ programming, but I've been using > > GNU/Linux for

Learning Glade

2008-04-25 Thread Patrick Braga
Hi, I'm a relative newcomer to GTK+ programming, but I've been using GNU/Linux for about a year and a half, know it pretty well, and am enjoying writing applications for it. However, I feel it will be easier for me to write graphical applications with an interface designer. The GNOME Library (http

Re: App blueprint, advice please!

2007-12-20 Thread Patrick
for this project. I would rather spend 2K sponsoring my open source comrades then those punks at NI Okay I am back now, Have a great day-Patrick Michael L Torrie wrote: > Patrick wrote: > >> Lets say a customer had a detector and a pump to pump a sample through >> it. We cou

App blueprint, advice please!

2007-12-18 Thread Patrick
t has taken a quantum leap forward in a few days-Patrick ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

posting rules regarding text format

2007-12-18 Thread Patrick
s but did not see something applicable Could someone tell me some other reasons why I would be blocked. Thanks in advance-patrick ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: App blueprint, advice please!

2007-12-17 Thread Patrick
the favor to all involved. THANKS!!!-Patrick > > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: App blueprint, advice please!

2007-12-16 Thread Patrick
rvous system + (Python/C/Ruby etc) as the muscle is a dumb idea!-Patrick G Hasse wrote: > On Sun, Dec 16, 2007 at 08:57:01PM +0100, Dan H wrote: > >> On Sun, 16 Dec 2007 12:47:44 -0500 >> Patrick <[EMAIL PROTECTED]> wrote: >> >> >>> With so many

App blueprint, advice please!

2007-12-16 Thread Patrick
edback with any thoughts you might have on this whole process. Thanks-Patrick ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

App blueprint, advice please!

2007-12-15 Thread Patrick
or about a year now and still do not have a line of code to show for myself. This project may take many years. Any feedback on my blueprint would be really appreciated-Patrick ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail

Re: C vs C++ for GTK

2007-11-26 Thread Patrick
, thanks to you and to everyone that posted! -Patrick Michael L Torrie wrote: > Patrick wrote: > >> Hi Everyone. >> >> Sorry for the flame war bait, I know how passionate language debates >> get but I need some guidance. I am using PyGTK right now and I am happy &

Re: C vs C++ for GTK

2007-11-24 Thread Patrick
Patrick wrote: > Hi Allin > > I have no interest in QT. > > Your points are very strong. > > If most of the free/libre software is in C then I better stick with C, > especially if learning C++ does not guarantee an understanding of > plain C. > > Thanks very much

C vs C++ for GTK

2007-11-24 Thread Patrick
Linus Torvalds in particular has been quoted as calling it a "horrible language". I can only spend 8-12 hours a week programming, I am not a professional programmer, is C++ to complicated? Is C going out of date? Am I limited with C? Thanks-Patrick __

Filtering GtkComboBoxEntry input

2007-08-11 Thread Patrick Hallinan
Hi, Is there a way to filter the text input to a GtkComboBoxEntry? I want to use it to provide a drop down list for preconfigured values and also to allow a user to set there own arbitrary value. On a related note: Is there an elegant way to directly set the text for the entry to some arbitrary

Setting a widget's width to the text width

2007-08-10 Thread Patrick Hallinan
Hi, I want to create a GtkComboEntry where the width is exactly set to display the largest string in the drop down list. I do not want to hard code the width. Is this something easy to do? Thanks for any help! Pat. ___ gtk-app-devel-list mailing list

Re: Problem to open a new window using libglade

2007-03-07 Thread patrick
, and update it with: while (gtk_events_pending()) gtk_main_iteration(); Later I would probably try it with threads. Thanks for the help. 2007/3/6, Karl H. Beckers <[EMAIL PROTECTED]>: > Am Montag, den 05.03.2007, 17:03 +0100 schrieb patrick: > > Great! Thank you very much,

Re: Problem to open a new window using libglade

2007-03-05 Thread patrick
g has not been displayed yet, don't bother updating > // the progress bar > if (!GTK_WIDGET_VISIBLE(GTK_WIDGET(dialog))) return 1; > > ... > do whatever needs to be done to update the progressbar here > > return 1; > } > > HT

Re: Problem to open a new window using libglade

2007-03-02 Thread patrick
Thanks for your answer. > if I'm not completely mistaken here, this has nothing to do with glade. > The thing just is, that you need to return to the main loop from the > callback for the widgets to be drawn properly. > That is prolly why you put in your gtk_main_iteration though I doubt > there i

Re: Problem to open a new window using libglade

2007-03-02 Thread patrick
; A quick "cheap trick" you could do is: > > gtk_window_set_keep_above (GTK_WINDOW(window2), TRUE); > gtk_window_show_now (GTK_WINDOW(window2)); > > - Micah Carrick > Developer | http://www.micahcarrick.com | http://www.gtkforums.com > > > > patrick wrote: >

Problem to open a new window using libglade

2007-03-01 Thread patrick
le, to show the progress to the user? thanks a lot! Patrick /* sample.glade */ http://glade.gnome.org/glade-2.0.dtd";> 10 True window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NO

Making a window that doesn't block mouse events to the root window (desktop)

2005-07-18 Thread Patrick Conheady
G'day there, I'd like to have a non-editable text box layer just on top of my desktop so that it's behind everything, and have it pass all its mouse events to the desktop. While it should visibly cover part of the desktop, I don't want it to get in the way of desktop right-click menus. Can the Gt