Re: [pygtk] Need help with spawn_async and callback

2011-09-09 Thread Tony Freeman
On RHEL5 I prefer to use Glade to build all the GUI's the project needs. That way I can redesign things if needed without hacking too much in the finished code. On 09/07/2011 02:02 PM, Grant McWilliams wrote: Thanks, Do you find that using Glade is worth the trouble over just hacking it

Re: [pygtk] Need help with spawn_async and callback

2011-09-08 Thread Grant McWilliams
Thanks, Do you find that using Glade is worth the trouble over just hacking it up in gtk directly? I've heard opinions both ways. I'll check over your code. Doing cli programming takes 1/4 the time over gui programming. I'm creating a cli version of my program to satisfy the powers that be while

Re: [pygtk] Need help with spawn_async and callback

2011-09-07 Thread Tony Freeman
Hello Grant, Below is the entire bit of code I was working on at that time. Pay attention to the spawn_async stuff. Good luck! -- Tony #!/usr/bin/python ## THIS IS A GUI FRONT END TO THE adjust_grids.sh ## SCRIPT LOCATED IN

Re: [pygtk] Need help with spawn_async and callback

2011-09-07 Thread Tony Freeman
I should mention that my office is using RHEL5 ... so pygtk and associated are at the 2.10 version. On Wed, Sep 7, 2011 at 10:07 AM, Tony Freeman t0ny.fr33...@gmail.com wrote: Hello Grant, Below is the entire bit of code I was working on at that time.  Pay attention to the spawn_async stuff.

Re: [pygtk] Need help with spawn_async and callback

2011-08-29 Thread Grant McWilliams
Tony Freeman t0ny.fr33man at gmail.com writes: Can you post the whole code anyway for those of us trying to figure out the same thing. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ:

[pygtk] Need help with pygtk and gtk...under Windows XP

2011-03-13 Thread Catalin
Hi I try to make working pygtk and gtk under python27. I read tutorials and i set gtk with this: I add on enviroment path vars : C:\gtk\bin C:\gtk\binpkg-config --cflags gtk+-2.0 -mms-bitfields -IC:/gtk/include/gtk-2.0 -IC:/gtk/lib/gtk-2.0/include -IC:/gtk/in clude/atk-1.0 -IC:/gtk/include/cairo

Re: [pygtk] Need help with pygtk and gtk...under Windows XP

2011-03-13 Thread Marko Tasic
Catalin, Which version of pygtk and gtk (win32 bundle?) do you use? Regards, Marko Tasic On Sun, Mar 13, 2011 at 10:43 AM, Catalin catalinf...@gmail.com wrote: Hi I try to make working pygtk and gtk under python27. I read tutorials and i set gtk with this: I add on enviroment path vars :

Re: [pygtk] Need help with pygtk and gtk...under Windows XP

2011-03-13 Thread Dieter Verfaillie
Hi, If you simply want to use PyGTK as soon as possible, you might be interested in the All-in-one installer: http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.22/ All you need to do is to install pygtk-all-in-one-2.22.6.win32-py2.7.msi after you've installed Python 2.7. That's it :) There's

Re: [pygtk] Need help with pygtk and gtk...under Windows XP

2011-03-13 Thread Marko Tasic
I also remember that I had problems without restarting Windows after setting new PATH environment variable. Regards, Marko Tasic On Sun, Mar 13, 2011 at 11:16 AM, Dieter Verfaillie diet...@optionexplicit.be wrote: Hi, If you simply want to use PyGTK as soon as possible, you might be

Re: [pygtk] Need help with pygtk and gtk...under Windows XP

2011-03-13 Thread Dieter Verfaillie
On 13/03/2011 11:23, Marko Tasic wrote: I also remember that I had problems without restarting Windows after setting new PATH environment variable. It should usually be enough to simply restart the process that needs to pick up the modified environment variable (Command Prompt, or maybe your

[pygtk] Need Help on vte Module

2010-09-09 Thread Timothy Ulusoy
Hello, I have the following code: *** import gtk import vte root = gtk.Window() root.connect(delete_event, gtk.main_quit) terminal = vte.Terminal() command1 = ls /home command2 = echo 'done' terminal.fork_command(command1.split()[0],

Re: [pygtk] Need help

2010-08-13 Thread Joel Juvenal Rivera Rivera
That's not an error is just a warning, you have 2 choices: 1) Follow the warning and use gtk.Image() 2) Add in the beginning of you script import warnings warnings.simplefilter('ignore') I suggest you to choose the number 1. On Mon, 2010-08-02 at 20:40 +0300, Cata wrote: I have

Re: [pygtk] Need help with spawn_async and callback

2010-07-27 Thread Tony Freeman
Thanks Robert, It took a few days, but I finally figured out how to go about it. I needed to first create a 'channel' to the cstdout file descriptor intiger. Here's what I did initially to get thing working: import pygtk import gtk import gtk.glade import gobject import os import io

Re: [pygtk] Need help with spawn_async and callback

2010-07-26 Thread Robert Schroll
On 07/25/2010 08:46 PM, Tony Freeman wrote: In short: What do I need to do in order to get the text being generated by my child process to show up in the textview? This doesn't answer your question, but have you considered running the child inside a vte.Terminal? Faced with a similar

[pygtk] Need help with spawn_async and callback

2010-07-25 Thread Tony Freeman
I hope someone can help me with this. Problem: I have a window widget (window2) that has a progress bar and a textview. I want to show the output of the child process that I launch inside the textview. Right now when I run the program, window2 pops up totally blank (no widgets displayed at all)

[pygtk] Need help

2010-07-24 Thread Cata
I use pygtk to create a class. This class has window = gtk.Window(gtk.WINDOW_POPUP) I put one image . This image is load from file and show it . fixed = gtk.Fixed() fixed.put(pixmap, 0, 0) window.add(fixed) fixed.show() All this code

[pygtk] Need help with gtk.Notebook

2009-03-29 Thread Kunal Sarkhel
I'm just writing a simple text editor. My code is attached. I have a function called openPage() that can take a filename or None. It then appends a gtk.SourceView to the gtk.Notebook. This works perfectly if I am calling openPage() from some place within my code, it works fine. However, when I

Re: [pygtk] Need help with gtk.Notebook

2009-03-29 Thread Gabriele Lanaro
I think that you need to show the notebook with the method after each call, for example with a self.window.show_all() or similar at the end of the callback. On Sun, 29 Mar 2009 13:25:54 -0400 Kunal Sarkhel theni...@bluedevs.net wrote: I'm just writing a simple text editor. My code is

[pygtk] Need help in Gtk Textview widget's background image

2008-07-09 Thread Dharmosoth Seetharam
Hi All, I got struck at setting the background image to the textview widget. Can you pleae help me in the regard. Thanks in advance regads, Seetharam 5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

Re: [pygtk] Need help to find origin of a mem leakage

2007-10-07 Thread David Tremouilles
Finaly catch the memory leak I was fighting with Was a tricky one, but the solution was simple: I had to include the contents of the notebook tab in a frame. Otherwise the memory is not released when you remove the tab. Any idea why is it like that??? Could it be kind of bug? I attach the

[pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread David Tremouilles
Sorry forgot the attachments Hello, I'm struggling with a memory leakage of my pygtk app for quite some time. Could somebody help me? I join a demo program in attachment. Basically, the final program will open a new notebook tab for each scientific data openned by the user. A close button a la

Re: [pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread David Tremouilles
Python 2.5.1 GTK: (2, 12, 0) pyGTK: (2, 12, 0) Sorry I forgot to mention the versions. David 2007/9/27, Pádraig Brady [EMAIL PROTECTED]: David Tremouilles wrote: Sorry forgot the attachments Hello, I'm struggling with a memory leakage of my pygtk app for quite some time. Could

Re: [pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread David Tremouilles
Here is an updated and cleaner version of the leaking code. I do not understand who is keeping a reference to the contents of each on tabs after removing it. David 2007/9/27, David Tremouilles [EMAIL PROTECTED]: Python 2.5.1 GTK: (2, 12, 0) pyGTK: (2, 12, 0) Sorry I forgot to mention the

Re: [pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread Pádraig Brady
David Tremouilles wrote: Sorry forgot the attachments Hello, I'm struggling with a memory leakage of my pygtk app for quite some time. Could somebody help me? Seems this is not a cycle reference (checked with gc.garbage) but I'm definitely not an expert... What version of python are

[pygtk] Need help with GtkToolItemType setting

2006-08-10 Thread Артём Попов
Hello, I've been trying to use the new (in 2.9.4) feature of setting ToolItem type in gtk.Action, (I need a toolitem with a dropdown menu). I was doing something like: class MenuToolAction(gtk.Action): pass MenuToolAction.set_tool_item_type(gtk.MenuToolButton) ...then creating a bunch of

Re: [pygtk] Need help with Tree/List view

2006-06-10 Thread David M. Cook
On Fri, Jun 09, 2006 at 03:31:49PM -0400, Hussein Vastani wrote: Now my question is. How do I indicate to the user which cell in the row is editable. If he/she has selected a particular row, then there is no clear This seems to be a problem with a lot of themes that use a really thin, hard

[pygtk] Need help with Tree/List view

2006-06-09 Thread Hussein Vastani
Hello All, I am currenly using the gtk TreeView to display text (simple and markedup), pixbufs, dropdown list and editable text in my application. Not all the columns are editable. Lets say the 1st, 4th and 7th columns are editable and others (besides the dropdownlist) are not. Now my question

[pygtk] need help with a textview -newbie

2005-08-14 Thread nephish
Hey there i am trying to write an app that will display some stuff in a textview in python. i know it has to do with using a textbuffer. And that it should be created automatically when i create the text view. how do i put a variable into the textbuffer or textview? like this def

Re: [pygtk] need help with a textview -newbie

2005-08-14 Thread Gian Mario Tagliaretti
2005/8/14, nephish [EMAIL PROTECTED]: Hey there hi i am trying to write an app that will display some stuff in a textview in python. i know it has to do with using a textbuffer. And that it should be created automatically when i create the text view. how do i put a variable into the

Re: [pygtk] need help with a textview -newbie

2005-08-14 Thread nephish
Gian Mario Tagliaretti wrote: 2005/8/14, nephish [EMAIL PROTECTED]: Hey there hi i am trying to write an app that will display some stuff in a textview in python. i know it has to do with using a textbuffer. And that it should be created automatically when i create the text

[pygtk] Need help trying to be a good GNOME application...

2004-11-17 Thread Don Allingham
Due to the demands of working for a startup company, I've been away from this list for quite a while. I've been trying to get caught up on the work needed for the GRAMPS project, and I could use some help on being a good GNOME application using pygtk/gnome-python. Because GRAMPS is a genealogy

Re: [pygtk] Need help trying to be a good GNOME application...

2004-11-17 Thread Gustavo J. A. M. Carneiro
Qua, 2004-11-17 às 09:33 -0700, Don Allingham escreveu: Due to the demands of working for a startup company, I've been away from this list for quite a while. I've been trying to get caught up on the work needed for the GRAMPS project, and I could use some help on being a good GNOME

Re: [pygtk] Need Help

2002-09-07 Thread Martin Klaffenboeck
Am Sa, 2002-09-07 um 00.25 schrieb Rob Brown-Bayliss: On Sat, 2002-09-07 at 08:03, Martin Klaffenboeck wrote: Oh, yes, I did that. Now I've got a Menu Bar with a Menu, that works, and I've got a GtkLayout with Scollbars in a Table. But there are always some small things I'd like to

[pygtk] Need Help

2002-09-06 Thread Martin Klaffenboeck
Hello, I'm reading one tutorial after an other, but I'm not able to find all this things out... If there is someone out there who wants to help my by my first gtk (and python) programm, so please write to me in an personal email. Be sure, I know something about perl, c, php ans so on, so I

Re: [pygtk] Need Help

2002-09-06 Thread Christian Reis
On Fri, Sep 06, 2002 at 09:03:30PM +0200, Martin Klaffenboeck wrote: I'm reading one tutorial after an other, but I'm not able to find all this things out... Dude, just pick up hello world from the examples directory and understand it, and then start tinkering it. That's all there is. Take

Re: [pygtk] Need Help

2002-09-06 Thread Martin Klaffenboeck
Am Fr, 2002-09-06 um 21.30 schrieb Christian Reis: On Fri, Sep 06, 2002 at 09:03:30PM +0200, Martin Klaffenboeck wrote: I'm reading one tutorial after an other, but I'm not able to find all this things out... Dude, just pick up hello world from the examples directory and understand it,

Re: [pygtk] Need Help

2002-09-06 Thread Christian Reis
On Fri, Sep 06, 2002 at 10:03:22PM +0200, Martin Klaffenboeck wrote: Am Fr, 2002-09-06 um 21.30 schrieb Christian Reis: On Fri, Sep 06, 2002 at 09:03:30PM +0200, Martin Klaffenboeck wrote: I'm reading one tutorial after an other, but I'm not able to find all this things out... Dude,

Re: [pygtk] Need Help

2002-09-06 Thread Michael Stenner
On Fri, Sep 06, 2002 at 10:03:22PM +0200, Martin Klaffenboeck wrote: Am Fr, 2002-09-06 um 21.30 schrieb Christian Reis: On Fri, Sep 06, 2002 at 09:03:30PM +0200, Martin Klaffenboeck wrote: I'm reading one tutorial after an other, but I'm not able to find all this things out... Dude,

Re: [pygtk] Need Help

2002-09-06 Thread Rob Brown-Bayliss
On Sat, 2002-09-07 at 08:03, Martin Klaffenboeck wrote: Oh, yes, I did that. Now I've got a Menu Bar with a Menu, that works, and I've got a GtkLayout with Scollbars in a Table. But there are always some small things I'd like to ask... and I always need much time to find that out... What

Re: [pygtk] Need Help

2002-09-06 Thread James Henstridge
Martin Klaffenboeck wrote: Am Fr, 2002-09-06 um 21.30 schrieb Christian Reis: On Fri, Sep 06, 2002 at 09:03:30PM +0200, Martin Klaffenboeck wrote: I'm reading one tutorial after an other, but I'm not able to find all this things out... Dude, just pick up hello world from the