Re: pygtk button right/middle click

2016-03-30 Thread Wildman via Python-list
On Wed, 30 Mar 2016 19:23:35 +, Grant Edwards wrote: > On 2016-03-30, Grant Edwards wrote: >> On 2016-03-30, Wildman wrote: >> Is the gtk button widget really incapable of handling left or middle mouse buttons or shift/ctrl/alt modifiers? >>> >>> This might help... >>> >>> http://f

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Grant Edwards wrote: > On 2016-03-30, Wildman wrote: > >>> Is the gtk button widget really incapable of handling left or middle >>> mouse buttons or shift/ctrl/alt modifiers? >> >> This might help... >> >> http://faq.pygtk.org/index.py?req=show&file=faq05.004.htp > > Yep, I found t

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Wildman wrote: >> Is the gtk button widget really incapable of handling left or middle >> mouse buttons or shift/ctrl/alt modifiers? > > This might help... > > http://faq.pygtk.org/index.py?req=show&file=faq05.004.htp Yep, I found that. I'm just missing the clues required to use

Re: pygtk button right/middle click

2016-03-30 Thread Wildman via Python-list
On Wed, 30 Mar 2016 15:36:12 +, Grant Edwards wrote: > I'm trying to figure out how to get a pygtk button respond to > somehting other than just a simple "left click". With a standard > 3-button mouse, X11 provides at least 9 different "click" types, but > the pygtk button only seems to suppo

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Chris Angelico wrote: > On Thu, Mar 31, 2016 at 2:36 AM, Grant Edwards > wrote: >> I'm trying to figure out how to get a pygtk button respond to >> somehting other than just a simple "left click". With a standard >> 3-button mouse, X11 provides at least 9 different "click" types,

Re: pygtk button right/middle click

2016-03-30 Thread Chris Angelico
On Thu, Mar 31, 2016 at 2:36 AM, Grant Edwards wrote: > I'm trying to figure out how to get a pygtk button respond to > somehting other than just a simple "left click". With a standard > 3-button mouse, X11 provides at least 9 different "click" types, but > the pygtk button only seems to support

Re: pygtk beginner script not working

2015-11-15 Thread kent nyberg
On Sat, Nov 14, 2015 at 05:00:59PM -0800, [email protected] wrote: > Hi guys > > I'm new to Python so please bare with me :) > > I'm using python 2.7.10 as advised (more tools apparently over 3.x) > > Trying to use this script > > [CODE] > #!/usr/bin/env python > > # example base.py

Re: pyGTK Help Needed Please

2013-09-20 Thread Michael Torrie
On 09/20/2013 12:30 PM, [email protected] wrote: > Hi folks, > > I'm trying to run a program called Nicotine+ on my Mac which is running > 10.8.5. Nicotine+ requires GTK2, pyGTK2 and Python to run. I believe I have > all of these installed via Macports (please see here - > http://pastebin.c

Re: pyGTK identify a button

2011-05-26 Thread Alister Ware
On Wed, 25 May 2011 10:18:48 +0200, Tracubik wrote: > Hi all, > i'm trying to write a simple windows with two button in GTK, i need a > way to identify wich button is pressed. Consider that: > > the two button are connected (when clicked) to infoButton(self, widget, > data=None) > > infoButton()

Re: pyGTK identify a button

2011-05-25 Thread Cousin Stanley
Tracubik wrote: > Hi all, > i'm trying to write a simple windows with two button in GTK, > i need a way to identify wich button is pressed. > #!/usr/bin/env python import gtk def console_display( button , args ) : a0 , a1 , a2 = args print '%s %s %s ' % ( a0 , a1 , a2

Re: pyGTK identify a button

2011-05-25 Thread Claudiu Nicolaie CISMARU
> thanks but, as i've sayed before, i can't use func_data 'cause i don't > know how to set it on glade3.8, that is the program i use to create > the > GUI. > Anyway, i think this is the only way to identify the button :-/ Hack into the generated source! -- Claudiu Nicolaie CISMARU GNU GPG

Re: pyGTK identify a button

2011-05-25 Thread Chris Angelico
On Wed, May 25, 2011 at 6:18 PM, Tracubik wrote: > Hi all, > i'm trying to write a simple windows with two button in GTK, i need a way to > identify wich button is pressed. > Consider that: > > the two button are connected (when clicked) to infoButton(self, widget, > data=None) I'm not terribly f

Re: pyGTK identify a button

2011-05-25 Thread Tracubik
On 25/05/2011 10:44, Claudiu Nicolaie CISMARU wrote: the two button are connected (when clicked) to infoButton(self, widget, data=None) From documentation: handler_id = object.connect(name, func, func_data) So: button1.connect(when is pressed, your_function, 1) button2.connect(when is presse

Re: pyGTK identify a button

2011-05-25 Thread Claudiu Nicolaie CISMARU
> the two button are connected (when clicked) to infoButton(self, > widget, > data=None) From documentation: handler_id = object.connect(name, func, func_data) So: button1.connect(when is pressed, your_function, 1) button2.connect(when is pressed, your_function, 2) (This code is conception, I

Re: PyGTK notebook: get current page

2011-05-07 Thread Alexander Kapps
On 07.05.2011 17:04, Tracubik wrote: Hi all! I've made a simple PyGTK program. It's a window with a notebook, the notebook have 2 pages When changing page, i'ld like to get the id of current page. I've coded it, but i can get only the previously open page, not the current one. This is not a big

Re: PyGTK, Glade/libglade. What am I doing wrong?

2011-05-07 Thread Alister Ware
On Sat, 07 May 2011 15:14:07 +1100, Даниил Рыжков wrote: > Thanks, Cristian! It works. >> List of Pygtk: http://www.daa.com.au/mailman/listinfo/pygtk > Thanks again. Subscribed :) > 2011/5/7 craf : >> Hi. >> >> Try this: >> >> #!/usr/bin/env python >> >> import gtk.glade >> >> class TestPyGtk: >>

Re: PyGTK, Glade/libglade. What am I doing wrong?

2011-05-06 Thread Даниил Рыжков
Thanks, Cristian! It works. > List of Pygtk: http://www.daa.com.au/mailman/listinfo/pygtk Thanks again. Subscribed :) 2011/5/7 craf : > Hi. > > Try this: > > #!/usr/bin/env python > > import gtk.glade > > class TestPyGtk: >    """This is an Hello World GTK application""" > >    def __init__(self):

Re: PyGTK, Glade/libglade. What am I doing wrong?

2011-05-06 Thread craf
On May 6, 2011 7:05 PM, "Даниил Рыжков" wrote: > > Sorry for my English (I could not find help in the Russian community) > I'm trying to learn PyGTK and Glade. I made test window in Glade and > saved it as "test.glade" (attached). Then I wrote script > "test.py"(attached, http://pastebin.com/waKyt

Re: PyGTK, Glade/libglade. What am I doing wrong?

2011-05-06 Thread Даниил Рыжков
> I haven't used gtk before, but is there a show method or something similar > you need, to actually make the window appear? I don't know. I think "self.wTree = gtk.glade.XML(self.gladefile)" should do this. For example, author of this tutorial (http://www.learningpython.com/2006/05/07/creating-a-g

Re: PyGTK, Glade/libglade. What am I doing wrong?

2011-05-06 Thread Benjamin Kaplan
On May 6, 2011 7:05 PM, "Даниил Рыжков" wrote: > > Sorry for my English (I could not find help in the Russian community) > I'm trying to learn PyGTK and Glade. I made test window in Glade and > saved it as "test.glade" (attached). Then I wrote script > "test.py"(attached, http://pastebin.com/waKyt

Re: [pygtk] cannot import glib in python shell

2009-12-23 Thread John Stowers
> > I think ideally what I'm requesting is to have the mingw/python/gtk > environments to be harmonized. I'm close. I can do the following: > python > import sys > import gtk > blah = gtk.Window(0) > blah.show() > , but when I do > import glib > ERROR!!! > if I cd to a certain dir in glib sourc

Re: PyGTK problems after Linux update...

2009-09-01 Thread barcaroller
"barcaroller" wrote in message news:[email protected]... > Okay, I won't disagree, but how do I fix this? Never mind. The latest update today included a new pygtk which seems to have fixed the problem. All is good now. -- http://mail.python.org/mailman/listinfo/pytho

Re: PyGTK problems after Linux update...

2009-08-30 Thread barcaroller
"Thomas Guettler" wrote in message news:[email protected]... > Looks like your pygtk package does not fit to the installed python > package. Okay, I won't disagree, but how do I fix this? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK problems after Linux update...

2009-08-30 Thread barcaroller
"Thomas Guettler" wrote in message news:[email protected]... > Looks like your pygtk package does not fit to the installed python > package. Okay, I won't disagree, but I how do if fix this? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK problems after Linux update...

2009-08-28 Thread Thomas Guettler
Looks like your pygtk package does not fit to the installed python package. > from glib._glib import * > ImportError: /usr/lib/python2.6/site-packages/gtk-2.0/glib/_glib.so: > undefined symbol: PyUnicodeUCS4_DecodeUTF8 -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guet

Re: pygtk - What is the best way to change the mouse pointer

2009-08-27 Thread Ido Levy
> From: > > MRAB > > To: > > [email protected] > > Date: > > 26/08/2009 11:04 PM > > Subject: > > Re: pygtk - What is the best way to change the mouse pointer > > Ido Levy wrote: > > Hello All, > > > >

Re: pygtk - What is the best way to change the mouse pointer

2009-08-26 Thread MRAB
Ido Levy wrote: Hello All, I am writing a dialog which one of its widget is a gtk.ComboBoxEntry ( let's assume widget in the example below is its instance ) When the user select one of the values from the gtk.ComboBoxEntry I need to run some calculations that takes a few seconds. In order to r

Re: PyGtk Depends on Numeric

2009-07-10 Thread Aahz
In article <1ebe9314-9434-459a-bd3e-2b2386a35...@n11g2000yqb.googlegroups.com>, dieter wrote: > >Get with the times people and port to numpy. :P >Don't you think its about time? Are you trying to get something to happen or just posting a random drive-by? -- Aahz ([email protected])

Re: PyGTK and skins?

2009-03-29 Thread Emanuele D'Arrigo
On Mar 29, 12:28 am, Cousin Stanley wrote: >     You might try the pygtk mailing list available >     via the  news.gmane.org  server Than you Stanley, much appreciated! Manu -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK and skins?

2009-03-28 Thread Cousin Stanley
> Is GTK/PyGTK able to support application-based (rather than os-based) > skins? I.e. round corners, redesigned scrollbars, arbitrarily shaped > buttons and so on? > Manu You might try the pygtk mailing list available via the news.gmane.org server gmane.comp.gno

Re: [PyGTK] Singleton Window

2009-03-05 Thread alex goretoy
Correction, it's not True singleton. -Alex Goretoy http://www.goretoy.com On Thu, Mar 5, 2009 at 10:38 PM, alex goretoy wrote: > Hello All, > > I am trying to create a singleton window in pygtk and for the life of me > can't seem to figure out a better way to go about doing this. The way I

Re: PyGTK install

2009-02-19 Thread Eric_Dexter
On Feb 18, 5:12 pm, Lionel wrote: > On Feb 18, 3:03 pm, Lionel wrote: > > > > > > > On Feb 18, 2:08 pm, Lionel wrote: > > > > On Feb 18, 11:43 am, Lionel wrote: > > > > > Hello folks, I couldn't find a specific PyGTK forum so I thought I'd > > > > post here and hope someone new the answer. I fe

Re: PyGTK install

2009-02-18 Thread Lionel
On Feb 18, 3:03 pm, Lionel wrote: > On Feb 18, 2:08 pm, Lionel wrote: > > > > > > > On Feb 18, 11:43 am, Lionel wrote: > > > > Hello folks, I couldn't find a specific PyGTK forum so I thought I'd > > > post here and hope someone new the answer. I feel it's a silly > > > problem, maybe something

Re: PyGTK install

2009-02-18 Thread Lionel
On Feb 18, 2:08 pm, Lionel wrote: > On Feb 18, 11:43 am, Lionel wrote: > > > > > > > Hello folks, I couldn't find a specific PyGTK forum so I thought I'd > > post here and hope someone new the answer. I feel it's a silly > > problem, maybe something to do with a path variable? The problem: I've >

Re: PyGTK install

2009-02-18 Thread Lionel
On Feb 18, 11:43 am, Lionel wrote: > Hello folks, I couldn't find a specific PyGTK forum so I thought I'd > post here and hope someone new the answer. I feel it's a silly > problem, maybe something to do with a path variable? The problem: I've > downloaded the "all-in-one" windows binary installer

Re: pygtk treview, ListStore not displaying properly

2008-07-29 Thread binaryjesus
finally i solved it. This for any googler who comes this way def show_sync_wind(self,obj, data = None): t = Template.select(Template.q.synced == '0') self.synclstore = gtk.ListStore(str,str,str,str,str) x = 0 cr = gtk.CellRend

Re: pygtk + threading.Timer

2008-04-14 Thread Dmitry Teslenko
2008/4/14 Jarek Zgoda <[EMAIL PROTECTED]>: > > I have simple chat application with pygtk UI. I want some event (for > > example update user list) to have place every n seconds. > > What's the best way to archive it? > > I tried threading.Timer but result is following: all events wait till > >

Re: pygtk + threading.Timer

2008-04-14 Thread Jarek Zgoda
Dmitry Teslenko napisał(a): > I have simple chat application with pygtk UI. I want some event (for > example update user list) to have place every n seconds. > What's the best way to archive it? > I tried threading.Timer but result is following: all events wait till > exit of gtk main loop and onl

Re: PyGTK localisation on Win32

2008-03-30 Thread Dieter Verfaillie
On Thu, 2008-03-27 at 05:21 -0700, Sukhov Dmitry wrote: > I have the same problem. I did all as you wrote. gettext translations > do work fine. But translations in glade does not work. > > The only way to turn it on is to set environment variable LANG > explicitly before program run: > set LANG=ru

Re: PyGTK localisation on Win32

2008-03-27 Thread Sukhov Dmitry
> > I had no problem with using standard gettext way of doing i18n on > Windows with PyGTK an Glade, apart some quirks with LANG environment > variable. Basically, the code that works looks like this: > > import gettext, locale > locale.setlocale(locale.LC_ALL, '') > if os.name == 'nt':

Re: PyGTK localisation on Win32

2008-03-25 Thread Jarek Zgoda
jwesonga pisze: > I've built an app on linux which we have managed to localise into at > least three languages, the app runs well using this command LANG=fr_FR > python app.py which would translate the app into french. We've tried > the replicate the same principle on windows but so far nothing wor

Re: PyGTK, Glade, and ComboBoxEntry.append_text()

2008-01-23 Thread Greg Johnston
On Jan 21, 5:44 pm, Greg Johnston <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm a relative newbie to Python (switched over from Scheme fairly > recently) but I've been usingPyGTKand Glade to create an interface, > which is a combo I'm very impressed with. > > There is, however, one thing I've been

Re: PyGTK, Glade, and ComboBoxEntry.append_text()

2008-01-22 Thread Yann Leboulanger
Greg Johnston wrote: > Hey all, > > I'm a relative newbie to Python (switched over from Scheme fairly > recently) but I've been using PyGTK and Glade to create an interface, > which is a combo I'm very impressed with. > > There is, however, one thing I've been wondering about. It doesn't > seem p

Re: pygtk theme colors ?

2007-12-12 Thread manatlan
I've found ... In fact, you'll need to "realize" the window, and you should obtain the real gtk theme style (if you didn't realize the window, you obtain the default gtk theme style) (I post it here, so i could find it in the future again ;-) w = gtk.Window() w.realize() style=w.get_style()

Re: [pygtk] Rectangular Selection in gtk.TextView

2007-12-07 Thread Wildemar Wildenburger
Oops! This was meant to go to the pygtk list. Mixup on my part, sorry. Not that I would lament comments from the general python crowd, though. ;) /W Wildemar Wildenburger wrote: > John Ehresman wrote: >> I may be wrong here, but I suspect TextView does not support >> rectangular selections. I

Re: [pygtk] Rectangular Selection in gtk.TextView

2007-12-07 Thread Wildemar Wildenburger
John Ehresman wrote: > I may be wrong here, but I suspect TextView does not support > rectangular selections. I haven't seen mention of rectangular > selections when I've worked with it and a quick google search seems to > confirm this. > That is my experience too; I was hoping that there might

Re: PyGTK : a NEW simple way to code an app

2007-06-09 Thread James T. Dennis
manatlan <[EMAIL PROTECTED]> wrote: > I was a fan of "SimpleGladeApp/tepache way" to build a pygtk app. > I've build a new efficient/dynamic way to build a pygtk app ... > Here is an example : > = > class Fen(GladeApp): >""" >Window win >

Re: PyGTK and HTML rendering?

2007-05-26 Thread Samuel
On Sat, 26 May 2007 23:23:19 +0200, Ivan Voras wrote: > Is there an easy off-the-shelf way to get HTML formatting inside the > TextArea widget? Gtk does not support this currently, but they would love to see this feature added into Gtk: > http://bugzilla.gnome.org/show_bug.cgi?id=59390 It shoul

Re: pygtk: how to make a screenlocking window?

2007-03-29 Thread Dave Cook
On 2007-03-28, André Wyrwa <[EMAIL PROTECTED]> wrote: > can anyone please point me to the relevant pygtk window properties i > need to set to make a window > - fullscreen > - stay in front > - grab all input focus > so that i can use it as a screen lock the likes that gksu or > gnome-power-manager

correction : Re: pygtk button event

2007-03-27 Thread [EMAIL PROTECTED]
Oups a small mistake: bt=application.get_widget('button1') [EMAIL PROTECTED] wrote: > Hi > > > i am trying to implement the following: > > I want to be able to press a button, perform a task and return a > value. > > my button is named button1 and I used glade to build the gui. > > so, someth

Re: (PyGTK) Disabling ToolButton when no TreeView item is selected?

2006-12-28 Thread Hendrik van Rooyen
"cypher543" <[EMAIL PROTECTED]> wrote: > I have a TreeView and a ToolButton. The ToolButton should only be > active if the user has selected an item in the TreeView. What signal > should I use to achieve this? you can try using the configure method on the toolbutton in the command that is execu

Re: Pygtk but no gtk?

2006-10-21 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Saturday 21 October 2006 03:01, Jonathan Smith wrote: > my pygtk provides > /usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py, which contains > the gtk module Great advice. I've tried >: $ ls /

Re: Pygtk but no gtk?

2006-10-20 Thread chengiz
> my pygtk provides > /usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py, which contains > the gtk module. You should ensure that you have that file, and if not, > find out where to get it. I had the files stored in my local space and my PYTHONPATH was wrong. It seems PYTHONPATH should conta

Re: Pygtk but no gtk?

2006-10-20 Thread Jonathan Smith
[EMAIL PROTECTED] wrote: > I am trying to build an app that requires pygtk so I installed the > latter. The app does the following: > import pygtk > ... > import gtk > > This crashes with > ImportError: No module named gtk. > > I dont know where to get this gtk module from. I assumed pygtk would

Re: pygtk dynamic table

2006-10-13 Thread Antoon Pardon
On 2006-10-12, JyotiC <[EMAIL PROTECTED]> wrote: > hi, > > i am making a gui, which looks like excel sheets. > i want to give the user the facility of adding rows/columns at the run > time. > there is some initial size, but that can be increased any time during > the executation of the code. > > wh

Re: PyGTK and Py2Exe troubles

2006-06-24 Thread Tim N. van der Leeuw
[EMAIL PROTECTED] wrote: > Tim N. van der Leeuw ha scritto: > > > I tried to create a windows executable of a pygtk program. My first > > attempt worked, kinda, except that no themes were applied and no > > readable fonts were found by pango; so all letters where just empty > > squares. But the pr

Re: PyGTK and Py2Exe troubles

2006-06-24 Thread riquito
Tim N. van der Leeuw ha scritto: > I tried to create a windows executable of a pygtk program. My first > attempt worked, kinda, except that no themes were applied and no > readable fonts were found by pango; so all letters where just empty > squares. But the program worked. > > I looked up some d

Re: [pygtk] Advanced Treeview Filtering Trouble

2006-04-27 Thread JUAN ERNESTO FLORES BELTRAN
Thanks a lot! it did work!! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK + Glade = weird problem

2006-02-25 Thread sapo
Finally solved this stuff, the problem wasnt with glade, the problem was that i was using the "destroy" event in glade, i just changed the "destroy" to "delete-event" and it worked like a charm. thanx :) -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK + Glade = weird problem

2006-02-24 Thread sapo
Anyway, now i tried in my glade app and i m getting this error when i try to show the window: GtkWarning: gtk_paint_flat_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed here is the code: class main: def __init__(self): self.principal = gtk.glade.XML("scc.glade

Re: PyGTK + Glade = weird problem

2006-02-24 Thread sapo
Man, you saved my day. I spent all day writing and rewriting stuff, i asked several times on the #python channel on irc.freenode.org, asked in the ubuntuforums, asked all people i know that uses python.. and nobody solved it. And it was a very simple and stupid thing! thanx a lot it worked perfe

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
Sorry about that. Your problem is that the show_hide_janela method is setup to be called both on a gtk signal ("destroy") and an event("delete_event"). Callback methods for events take a slightly different signature than signals; they take one extra argument, which represents the triggering even

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
Oops- I didn't read your question carefully enough. That's probably not the problem. Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
We'd need to see your "scc.glade" file to be sure, but basically, calling the "show" method on the "w_cadcli" object only shows it, not the objects it contains. Again, to be clear, showing a container object doesn't automatically show the objects it contains. In glade, use the "common" tab of the

Re: PyGTK

2006-02-11 Thread Dieter Verfaillie
On Thu, 09 Feb 2006 12:38:26 +, Dave Cook wrote: > > particularly the last section on how to create an EXE from your pygtk program. > That recipe isn't optimal with newer gtk versions (starting from 2.8 if I remember correctly). Look here instead: http://starship.python.net/crew/theller/moin

Re: PyGTK

2006-02-09 Thread Dave Cook
On 2006-02-08, Huy <[EMAIL PROTECTED]> wrote: > Hi, I'm new to Python, and GUI development, but am no novice to backend > programming. Aside from mastering the standard language, I will > eventually be developing applications dealing with images and controls. > Thus forth I have been testing out

Re: PyGTK

2006-02-09 Thread Jeremy Sanders
Huy wrote: > What I am curious to know is whether anyone has come across any > noteworthy gui development platforms. Cross compatibility is not a > must, but a bonus. Good documentation and clarity is essential for me. > Also, I imagine I can use modules for image manipulation in tandem > with

Re: PyGTK

2006-02-09 Thread rodmc
Well I have just started using Python and have found wxPython to be pretty good, it is built upon the WxWindows framework.It is also cross-platform. You can find it at www.wxpython.org. It appears to be easy to understand and there are a few GUI builder tools around for it as well. Rod -- http:

Re: PyGTK Notebook button_press_event connection

2006-01-24 Thread Johan Dahlin
> > > notebook = gtk.Notebook() > ... > child = gtk.Frame() > ... > label = gtk.Label('Any text') > label.connect('button_press_event', a_function) > ... > notebook.append_page(child, label) > > > > But the button_press_event event is not intercepted (nothing happens > when I click on the tab

Re: pyGTK gtk.Style obj

2005-12-13 Thread ivan.dm
Lawrence Oluyede ha scritto: > Il 2005-12-13, ivan.dm <[EMAIL PROTECTED]> ha scritto: > >>Hi all. >> >>in this sentence: >>self.area = gtk.DrawingArea() >>self.style = self.area.get_style() >>self.gc = self.style.fg_gc[gtk.STATE_NORMAL] >> >>where can I find about style and its property? > > > I

Re: pyGTK gtk.Style obj

2005-12-13 Thread Lawrence Oluyede
Il 2005-12-13, ivan.dm <[EMAIL PROTECTED]> ha scritto: > Hi all. > > in this sentence: > self.area = gtk.DrawingArea() > self.style = self.area.get_style() > self.gc = self.style.fg_gc[gtk.STATE_NORMAL] > > where can I find about style and its property? In the tutorial: http://www.pygtk.org/pygtk2

Re: PyGTK or wXPython?

2005-09-14 Thread Rod W
Magnus Lycka wrote: > What OS(es) do yo need to support? My apps will mostly be run on Windows desktops, but there are some Linux users. > I'm curious about PyGTK on Windows. It seems to me that the GTK+ > Windows port is lagging behind a bit (no 2.8?), doesn't look or > behave quite as native w

Re: PyGTK or wXPython?

2005-09-14 Thread Jarek Zgoda
Paul McNett napisał(a): >> I would use wx, if it wasn't so dog slow on linux. Qt and GTK are much >> faster, but each one has disadvantages. Finally, you get 3 GUI toolkits, >> of which each claims to be "cross-platform", but each is working at >> acceptable level of WTF only on one system (wx on

Re: PyGTK or wXPython?

2005-09-14 Thread Magnus Lycka
Rod W wrote: > I'm just starting out on Python but my primary goal is to provide > applications with some user interface (GUI). > > Can someone point me to a good comparison of whether I should use > wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)? What OS(es) do yo need to supp

Re: PyGTK or wXPython?

2005-09-14 Thread Thomas Guettler
Am Tue, 13 Sep 2005 07:01:57 -0700 schrieb TPJ: >> Beside this, wxPython (and wxWidgets) is often told to be more complete, >> better documented and better supported than GTK/PyGTK. > > Is wxPython often told to be more documented? By who? > > Several months ago I wanted to choose a nice GUI for

Re: PyGTK or wXPython?

2005-09-14 Thread paron
Just a thought -- you might consider using a HTTP/browser UI. It's graphically ugly, but it's familiar for users, and it goes cross-platform very well. Plus, if you decide to move the app to a Web server, you're already done. Ron -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wXPython?

2005-09-13 Thread Paul McNett
Jarek Zgoda wrote: > I would use wx, if it wasn't so dog slow on linux. Qt and GTK are much > faster, but each one has disadvantages. Finally, you get 3 GUI toolkits, > of which each claims to be "cross-platform", but each is working at > acceptable level of WTF only on one system (wx on Windows,

Re: PyGTK or wXPython?

2005-09-13 Thread Jarek Zgoda
TPJ napisał(a): >>Beside this, wxPython (and wxWidgets) is often told to be more complete, >>better documented and better supported than GTK/PyGTK. > > Is wxPython often told to be more documented? By who? By me, for example. But I don't mind using wxWidgets C++ API documentation as wxPython ref

Re: PyGTK or wXPython?

2005-09-13 Thread Peter Decker
On 9/13/05, Grant Edwards <[EMAIL PROTECTED]> wrote: > Anyway, there are some lighter-weight wrappers that make the > API more Pythonic and hide the nasty stuff like the id and flag > parameters. I tried "wax" a while back and it looked > promising. I looked at Wax, too, but as of last spring it

Re: PyGTK or wXPython?

2005-09-13 Thread Grant Edwards
On 2005-09-13, Peter Decker <[EMAIL PROTECTED]> wrote: [regarding wxGTK vs wxPython] > I looked at both, and preferred wxPython's look. I hated its > C-like feeling, with some very un-Pythonic code that failed to > hide its C roots very well, but I used it because the results > were so good. > >

Re: PyGTK or wXPython?

2005-09-13 Thread Christophe
Peter Decker a écrit : > On 9/13/05, Rod W <[EMAIL PROTECTED]> wrote: > >>I'm just starting out on Python but my primary goal is to provide >>applications with some user interface (GUI). >> >>Can someone point me to a good comparison of whether I should use >>wxPython (with wxGlade I assume) or Py

Re: PyGTK or wXPython?

2005-09-13 Thread Peter Decker
On 9/13/05, Rod W <[EMAIL PROTECTED]> wrote: > I'm just starting out on Python but my primary goal is to provide > applications with some user interface (GUI). > > Can someone point me to a good comparison of whether I should use > wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)? >

Re: PyGTK or wXPython?

2005-09-13 Thread TPJ
> Beside this, wxPython (and wxWidgets) is often told to be more complete, > better documented and better supported than GTK/PyGTK. Is wxPython often told to be more documented? By who? Several months ago I wanted to choose a nice GUI for Python (Tkinter was out of question). I choosed PyGTK for

Re: PyGTK or wXPython?

2005-09-13 Thread Wolfgang Keller
> (I do not use/program/own any McOS system, so I cannot > tell you anything about the Apple Platform). WxPython _can_ give you a native Mac "look and feel", if you are willing to take into account certain issues (such as e.g. menu bars not tied to windows, no MDI, no multi-pane etc.). It is afa

Re: PyGTK or wXPython?

2005-09-13 Thread Alessandro Bottoni
Rod W wrote: > I'm just starting out on Python but my primary goal is to provide > applications with some user interface (GUI). > > Can someone point me to a good comparison of whether I should use > wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)? > > I'd prefer open source (not

Re: PyGTK or wxPython (not a flame war) on Windows

2005-08-04 Thread TPJ
I have encountered some problems with PyGTK only when I was trying to install a PyGTK version that was different from the installed GTK+ version. When those both versions were the same, I had no problems at all. (Another problem with PyGTK is that it's installation is somewhat more complicated tha

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-25 Thread Lonnie Princehouse
I haven't used PyGTK very much, so I can't comment on it. My last impression of GTK-on-Windows was that it wasn't very stable and didn't blend well with the Windows native look and feel, but that was a while ago and it has probably improved a great deal since then. I use wxPython, doing my develo

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-25 Thread Marek Kubica
Hi! On Sun, 24 Jul 2005 22:16:01 +0200 Torsten Bronger wrote: > I'm very suprised. wxPython is still that buggy? I read reports > from 2000 about such observations, but they tried wxPython in a > non-standard way, and the project has had 5 years to become more > stable after all. Well, I don'

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-25 Thread Peter Hansen
Torsten Bronger wrote: > Marek Kubica <[EMAIL PROTECTED]> writes: >>I have started GUIs in Python with wx, but after a short time I >>was annoyed how many things were buggy. I don't know why, but I >>fell from one bug to the other while programming one application. > > I'm very suprised. wxPython

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-25 Thread Jarek Zgoda
TPJ napisał(a): >>PyQt works equally well on both systems. > > I believe you. The problem is I don't like GPL. So, buy commercial license for Qt and PyQt. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Robert Kern
Torsten Bronger wrote: > As far as i know, there is nothing official. But I've read several > times that it's the most likely candidate for a seconds GUI system > for being included. I think you're reading *way* too much into people engaging in wishful thinking. -- Robert Kern [EMAIL PROTECTE

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Torsten Bronger
Hallöchen! Bryan <[EMAIL PROTECTED]> writes: > Torsten Bronger wrote: > >> Besides, wxPython prepares for being included into the standard >> distribution. > > wow, i've never heard this said so explicitly. is there a > reference link backing up this statement? i really really hope > this is tr

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Paul Rubin
I've had miserable experiences trying to use WxPython or GTK under both RH9 and Fedora Core 3. There is some version skew between the installed versions of GTK and the WxWidgets on the distro site. I made some progress by installing an old version of GTK but there was still some problem. I decid

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Tim Lesher
Yes, it's not that hard to get the native file dialogs, as described in the FAQ: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq21.013.htp It would be nice if PyGTK had a knob for making it use win32 dialogs by default, though. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Dave Cook
On 2005-07-24, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Is PyGTK more Pythonic by the way? I find it more Pythonic than "raw" wxpython. However, the API still has the fingerprints of C programmers all over it. Compare the gtk's clunky treemodel/treeview API to Cocoa's elegant delegates.

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Peter Decker
On 7/24/05, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Is PyGTK more Pythonic by the way? I had a look at wxPython > yesterday and didn't like that it has been brought into the Python > world nearly unchanged. You can see its non-Python origin clearly. > How does PyGTK feel in this respect? T

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Bryan
Torsten Bronger wrote: > > Besides, wxPython prepares for being included > into the standard distribution. > wow, i've never heard this said so explicitly. is there a reference link backing up this statement? i really really hope this is true. i'm very much in favor to see wx included in t

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Torsten Bronger
Hallöchen! Marek Kubica <[EMAIL PROTECTED]> writes: > [...] > > I have started GUIs in Python with wx, but after a short time I > was annoyed how many things were buggy. I don't know why, but I > fell from one bug to the other while programming one application. I'm very suprised. wxPython is st

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Marek Kubica
Hi! Am Sun, 24 Jul 2005 19:47:30 +0200 schrieb Torsten Bronger: > Is PyGTK more Pythonic by the way? I had a look at wxPython > yesterday and didn't like that it has been brought into the Python > world nearly unchanged. You can see its non-Python origin clearly. > How does PyGTK feel in this r

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Torsten Bronger
Hallöchen! Marek Kubica <[EMAIL PROTECTED]> writes: > Hello! > >> AFAIK PyGTK doesn't look native on Win as well, but I don't care. > > [...] The native look and feel is not as good as the look and feel > of wx but still really _much_ better than older versions of GTK. Is PyGTK more Pythonic by

  1   2   >