[pygtk] problem with GnomeCanvas

1999-05-21 Thread Tom Cato Amundsen
#!/usr/bin/python # # I am a musician writing a GPL'ed program to help people # do eartraining. I'm no programmer, so the question is # probably quite simple, but I am totally confused by # GtkPixmaps, GnomeCanvasImages, GdkImlib.Images and (for # me) cryptical error messages: # # Is it possible

[pygtk] XmHTML scrolling

2000-03-10 Thread Tom Cato Amundsen
I'm obviously missing something. What event to connect to to use the keyboard to scroll the html widget? Tom Cato To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

[pygtk] GtkHTML and CSS

2000-03-21 Thread Tom Cato Amundsen
Do you know if the new GtkHTML widget support any CSS? Tom Cato To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Re: [pygtk] win32 pygtk

2000-04-16 Thread Tom Cato Amundsen
Hans Breuer wrote: Instead of Kevin Butler's port, mine is updated quite recently pygtk-0.6.4 / 2000-04-04; see: http://hans.breuer.org/ports Thanks, it works fine, not a single protection error! If someone just could port GtkXmHTML/GtkHTML, libgnomeui and friends to windows :-) I didn't

Re: [pygtk] GtkText insert_text gives martian pos!

2000-05-01 Thread Tom Cato Amundsen
Anders Eurenius wrote: def xinsert(txt, new, len, pos): print txt, new, len, pos conn.send(repr(("i", pos, new[0:len]))) ... text.connect('insert_text', xinsert) This comes out "gtk.GtkText instance at 81ff510 a 1 PyCObject object at 81ff150" and, at the other end "('i',

Re: [pygtk] new development snapshot

2000-05-09 Thread Tom Cato Amundsen
In my eartraining program, I have the (bad?) habit of using multiple inheritance: class ChordBox(gkt.GtkHBox, DataStorage): def __init__(self, name): gtk.GtkHBox.__init__(self) DataStorage.__init__(self, name) ... ... With

Re: [pygtk] new development snapshot

2000-05-09 Thread Tom Cato Amundsen
James Henstridge wrote: This is due to the use of ExtensionClass. I am not sure how to fix this properly. This is mentioned in the ExtensionClass.stx file included in the tarball. You can get your code to work with: DataStorage.__dict__['__init__'](self, name) Thanks, I can live with

[pygtk] how to use GnomeApp.install_menu_hints?

2000-05-12 Thread Tom Cato Amundsen
A link to an app that use install_menu_hints is enough, or look at this: from gtk import * from gnome.ui import * class MyWin(GnomeApp): def __init__(self): GnomeApp.__init__(self) menuinfo = [UIINFO_SUBTREE("File", [UIINFO_ITEM("Test", "tooltip", None),

Re: [pygtk] set_state -method

2000-06-22 Thread Tom Cato Amundsen
You really want the set_sensitive method, not set_state. Tom Cato janne halttunen wrote: Hi, setting a button insensitive with button.set_state(GTK.STATE_INSENSITIVE) works fine, but when trying to set it back to normal with button.set_state(GTK.STATE_NORMAL) nothing

[pygtk] cschtml

2000-08-04 Thread Tom Cato Amundsen
Has anyone on this list considered making python bindings for cschtml, http://www.cscmail.net/cschtml? It is the (IMO wrongly named) GtkHTML widget ported to Gtk, without depending on all the gnome libs. Tom Cato ___ pygtk mailing list [EMAIL

Re: [pygtk] cschtml

2000-08-05 Thread Tom Cato Amundsen
Matt Wilson wrote: public serive announcement FORKED LIBRARIES ARE BAD. Don't promote the use of them. If you have Forcing everybody to use gnome, is not that good either... Gnome is NICE, but sometimes you want to go with just gtk+. a problem with the GtkHTML requirement on

[pygtk] GnomeApp and menubar

2000-08-21 Thread Tom Cato Amundsen
What is the simplest way to access a menu on the menu bar, when you use GnomeApp and the UIINFO variables to create the menu? mainwin.get_dock_item_by_name("Menubar").children()[0].children[nn] works, but I guess I am missing the correct way to do it. -- Tom Cato Amundsen [EMAIL PROT

[pygtk] Re: gtkmozembed bindings]

2000-08-29 Thread Tom Cato Amundsen
This is what Mark Crichton told me, when I asked him about the bindings. - Forwarded message from MARK A CRICHTON [EMAIL PROTECTED] - From: MARK A CRICHTON [EMAIL PROTECTED] Date: Fri, 25 Aug 2000 12:18:44 -0400 To: Tom Cato Amundsen [EMAIL PROTECTED] Subject: Re: gtkmozembed bindings

Re: [pygtk] GtkBox.pack_start() problem

2000-09-04 Thread Tom Cato Amundsen
___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list

[pygtk] GtkCombo and signals

2000-10-13 Thread Tom Cato Amundsen
? -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] gnome-python gtkhtml help offered

2001-02-02 Thread Tom Cato Amundsen
I used to build a debian package for python-gnome 1.0.53. It works for plain html, but crashes my app if the file contains any graphics. I have not tried to find out what's the problem. -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege

Re: [pygtk] gnome-python gtkhtml help offered

2001-02-02 Thread Tom Cato Amundsen
On Fri, Feb 02, 2001 at 08:54:47PM -0300, Nahuel Greco wrote: On Sat, 3 Feb 2001 00:35:36 +0100 "Tom Cato Amundsen" [EMAIL PROTECTED] wrote: On Fri, Feb 02, 2001 at 07:09:27PM -0300, Nahuel Greco wrote: Hi, i must do a wysiwyg html editor for linux, for this, i want to u

Re: [pygtk] gnome-python gtkhtml help offered

2001-02-05 Thread Tom Cato Amundsen
while loading shared libraries: /usr/lib/gdk-pixbuf/loaders/libpixbufloader-png.so: undefined symbol: g_malloc0 I am running a mix of potato/testing/unstable, but the libraries causing the trouble is from unstable. -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http:

Re: [pygtk] gnome-python 1.4.0

2001-02-19 Thread Tom Cato Amundsen
/mailman/listinfo/pygtk -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] Python 2.1 / Gtk+ 2.0

2001-03-14 Thread Tom Cato Amundsen
that will use 2.0. thx, -- Skip Montanaro ([EMAIL PROTECTED]) (847)971-7098 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining

Re: [pygtk] how to contribute

2001-03-29 Thread Tom Cato Amundsen
. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list

Re: [pygtk] python-gtkhtml Debian?

2001-05-02 Thread Tom Cato Amundsen
On 02 May 2001 09:17:47 +0800, James Henstridge wrote: On 2 May 2001, Tom Cato Amundsen wrote: On 01 May 2001 21:11:11 +0100, David Given wrote: Are there any plans underway to Debianise the python-gtkhtml bindings? I need a decent HTML renderer (i.e., not GtkXmHTML) for my mailer app

Re: [pygtk] Request for Comments: shorter widget class names

2001-09-12 Thread Tom Cato Amundsen
the better. One negative thing is that python 2.2 will probably not make it into woody. James. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free

[pygtk] Code snippet causes segfault. Please test.

2001-09-17 Thread Tom Cato Amundsen
): pass class MWin(gtk.GtkWindow, VClass): def __init__(self): gtk.GtkWindow.__init__(self, gtk.WINDOW_TOPLEVEL) VClass.__dict__['__init__'](self) print Prepare to segfault a = self.b print You'll never get here! w = MWin() -- Tom Cato Amundsen

Re: [pygtk] Where can I get pygtk for Windows?

2001-09-17 Thread Tom Cato Amundsen
* Adore Unix ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege

Re: [pygtk] Code snippet causes segfault. Please test.

2001-09-17 Thread Tom Cato Amundsen
Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

Re: [pygtk] Code snippet causes segfault. Please test.

2001-09-18 Thread Tom Cato Amundsen
() #21 0x4011464f in __libc_start_main () from /lib/libc.so.6 -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo

[pygtk] TypeError: metatype conflict among bases

2001-10-02 Thread Tom Cato Amundsen
(...) m=MySpecialGtkBox(...) m.cfg.set_int('sound/volume', 100) I have programmed object oriented for several years, but I have never *needed* multiple inheritance for anything, except keystroke saving thinks like described above. (But then, I only write incomplex code..) --- Tom Cato Amundsen [EMAIL

[pygtk] TypeError: object doesn't support item assignment

2001-10-06 Thread Tom Cato Amundsen
The little script below gives me this error message: File ./bug.py, line 11, in ? for ex in ['a', 'b', 'c']: TypeError: object doesn't support item assignment If you use tuplets instead of lists in the loop, it works ok. Also if you don't give 'f' as the callback function for append_item,

Re: [pygtk] Announcement: pygtk2 for windows

2002-03-24 Thread Tom Cato Amundsen
PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list [EMAIL

[pygtk] GtkSpinButton: input/output signal problem and workaround

2002-03-27 Thread Tom Cato Amundsen
of those two values. The attached spin-bug-workaround.py is the simplest workaround I have found. Anyone care to compile the program and test it to see if this is a local problem? -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ all: spins

[pygtk] memory leaks in pygtk 1.99.9

2002-05-13 Thread Tom Cato Amundsen
) are not mentioned on stdout. -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ #!/usr/bin/python2.2 import sys sys.path.insert(0, /home/tom/pygtk2/lib/python2.2/site-packages) import gtk class Win(gtk.Window): def __init__(self

[pygtk] gnome-python should distribute examples/gtkhtml2/simple-browser.py

2002-05-16 Thread Tom Cato Amundsen
@@ gnome-python.spec \ gnome-python.spec.in \ examples/canvas/canvas-example.py \ - examples/zvt/zvt-demo.py + examples/zvt/zvt-demo.py \ + examples/gtkhtml2/simple-browser.py -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege

Re: [pygtk] pygtk ANd pygnome 2

2002-06-18 Thread Tom Cato Amundsen
/glade stuff did work for me out of the box. Malcolm ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege

Re: [pygtk] pygtk-1.99.11 and gnome-python-1.99.11

2002-07-11 Thread Tom Cato Amundsen
it after upgrading pygtk). Stupid question, but why rebuild orbit-python after upgrading pygtk?? -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list [EMAIL PROTECTED

[pygtk] updated FAQ 19.2

2002-10-22 Thread Tom Cato Amundsen
: The gnome-python bindings for GNOME2 includes bindings for gtkhtml2. gtkhtml2 uses pango for i18n text rendering, etc. http://gtkhtml2.codefactory.se/. The HTML rendering still needs work. -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software

[pygtk] GnomeAbout dialog crashing

2002-12-23 Thread Tom Cato Amundsen
', gtk.mainquit) gtk.mainloop() -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http

Re: [pygtk] Python does not find PyGtk

2002-12-28 Thread Tom Cato Amundsen
, right? ImportError: No module named gtk What is missing? sys.path is I guess you forgot to import pygtk pygtk.require(2.0) before import gtk -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege

Re: [pygtk] ANNOUNCE: PyGTK 2.0 Reference Manual V1.1

2003-07-16 Thread Tom Cato Amundsen
On Fri, Jul 11, 2003 at 04:26:53PM -0700, John Finlay wrote: I've updated the PyGTK 2.0 Reference Manual with the addition of the Pango classes. It's at: http://www.moeraki.com/pygtkreference/index.html and a tarball of the html is at:

Re: [pygtk] Get FAQs

2003-10-02 Thread Tom Cato Amundsen
. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege

Re: [pygtk] [ANN] MVC-0.3.0 released

2004-01-14 Thread Tom Cato Amundsen
list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/ ___ pygtk mailing

[pygtk] gnome-python and suse 9.0

2004-02-26 Thread Tom Cato Amundsen
/src/mainwin.py, line 149, in ? import gnome, gnome.ui ImportError: could not import bonobo.ui Does anybody know what package contains the bonobo.ui module on suse 9? On debian this it is in python2.3-gnome2. -- Tom Cato Amundsen [EMAIL PROTECTED] GNU Solfege - free

Re: [pygtk] When will 2.4 be official?

2004-06-10 Thread Tom Cato Amundsen
yet. Maybe 1 month, maybe 3. No definite plan. But it certainly helps that people like you tests it and are happy with it. GNU Solfege runs fine with PyGTK 2.3.92 on debian unstable. -- Tom Cato Amundsen [EMAIL PROTECTED] http://www.solfege.org/ GNU Solfege - free ear

Re: [pygtk] Texttags tutorial

2004-09-19 Thread Tom Cato Amundsen
- it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen

Re: [pygtk] GnomePython branched

2004-11-07 Thread Tom Cato Amundsen
) between: 1- split non-devel-platform modules out of gnome-python (aka the minimal split); 2- split everything up, one module per package (aka the full split). I for one prefer the minimal split... I agree. My vote weight nearly zero, since I don't code... -- Tom Cato

Re: [pygtk] PyGTK General Wiki

2005-04-11 Thread Tom Cato Amundsen
___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen [EMAIL PROTECTED] http://www.solfege.org/ GNU Solfege - free ear traininghttp

Re: [pygtk] PyGTK General Wiki

2005-04-11 Thread Tom Cato Amundsen
and there is a lot of work to skin it properly. Pmwiki is simple to setup, and stores it's pages in plain text files. It is easy to extend if we need some special features. Johan -- Tom Cato Amundsen [EMAIL PROTECTED] http://www.solfege.org/ GNU Solfege - free ear training

Re: [pygtk] PyGTK General Wiki

2005-04-11 Thread Tom Cato Amundsen
Didn't know about live.gnome.org when I answered this. I think you should be using live.gnome.org. Prefixing, using groups (if available on that wiki) or categories will make it easy to keep track of you pages. Tom Cato On Mon, Apr 11, 2005 at 05:45:02PM +0200, Tom Cato Amundsen wrote: On Mon

[pygtk] Cairo font seletion

2006-04-03 Thread Tom Cato Amundsen
because I still haven't figured out how to do this with fontconfig, but also because I need a solution that works on MS Windows too. Can anyone on this list give me a hint about how to do this, or urls to useful docs? -- Tom Cato Amundsen [EMAIL PROTECTED] http://www.solfege.org

Re: [pygtk] Cairo font seletion

2006-04-03 Thread Tom Cato Amundsen
it is not in a standard encoding. Tom Cato On Mon, Apr 03, 2006 at 06:35:15PM +0200, Tom Cato Amundsen wrote: Hello I want to include a music font with the GNU Solfege program, with is written using pygtk. I want to display glyphs from this on on a CairoContext. Is is possible to select the font in a file /usr

[pygtk] Font problem again

2006-04-05 Thread Tom Cato Amundsen
. Add the --workaround command option and see a G-clef in the window. It seems that I have to create a label and set it's font to feta18 to make the feta18 font usable in the cairo context. Does anyone have an idea what the problem is? -- Tom Cato Amundsen [EMAIL PROTECTED] http

Re: [pygtk] ProgressBar widget click event

2006-11-07 Thread Tom Cato Amundsen
://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen [EMAIL PROTECTED] http://www.solfege.org/ GNU Solfege - free ear traininghttp://www.gnu.org/software/solfege

Re: [pygtk] GtkHtml on Win32

2007-02-06 Thread Tom Cato Amundsen
reference saying that it is possible. I don't know, so I made an hackish version using GtkTextView. It is used in Solfege, http://www.solfege.org. It is very badly written, since I'm not programmer, but it works good enough to display the docbook generated docs in gnu solfege. It is GPL'ed. -- Tom Cato

Re: [pygtk] python-gtkhtml2 docs

2008-07-09 Thread Tom Cato Amundsen
Have a look at src/htmlwidget.py in gnu solfege. You find the tarball at http://www.solfege.org/Solfege/Download . See the GtkHtml2Widget class in that file. It loads images. I don't remember on the fly if css works too. Tom Cato ___ pygtk mailing list

Re: [pygtk] Python 3.0 plans

2008-07-19 Thread Tom Cato Amundsen
Liberty nor Safety. -- Benjamin Franklin, 1759 ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Tom Cato Amundsen [EMAIL PROTECTED] http

[pygtk] gtk/pygobject api question

2011-03-04 Thread Tom Cato Amundsen
too, like Box.pack_start that don't have optional arguments any more. Is this what it will be when it is final, or can I expect optional arguments in methods like in pygtk? -- Tom Cato Amundsen t...@gnu.org                 http://www.solfege.org/ GNU Solfege - free ear training    http

Re: [pygtk] shrink window to minimum size when some child widgets are hidden

2012-05-28 Thread Tom Cato Amundsen
My fault, I meant set_resizeable(False). Doesn't this make the windows shrink when you hide widgets? In Solfege I always get the windows as small as possible when set_resizeable(False) is called. -- Tom Cato Amundsen t...@gnu.org http://www.solfege.org/ GNU Solfege - free ear