Re: [pygtk] Wrapping Gtksheet
On Wed, May 18, 2005 at 12:07:00PM +, Philippe Collet wrote: I'm a beginner in the wrapping process. I'm trying to create a wrapper to use gtksheet with pygtk. First question would be: why not work on GtkGrid, which /has/ a wrapper and will probably be less work to adapt? Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125 ___ 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/
Re: [pygtk] Wrapping Gtksheet
Christian Robottom Reis wrote: On Wed, May 18, 2005 at 12:07:00PM +, Philippe Collet wrote: I'm a beginner in the wrapping process. I'm trying to create a wrapper to use gtksheet with pygtk. Philippe, it's great having some more people wrapping libraries like crazy!. But remember that there's ongoing work to add introspection capabilities to gobject, and it would make bindings mostly automatic. First question would be: why not work on GtkGrid, which /has/ a wrapper and will probably be less work to adapt? This is indeed a great suggestion. Philippe, would you dare to have a look to GtkGrid? It could eventually get into gtk+ itself and the problem would be solved at its root. If you're willing to hack on it here you have some additional information: GtkGrid design document and comments thread on gtk+ mailing list: http://mail.gnome.org/archives/gtk-devel-list/2004-April/msg00137.html Some more comments on gnome-db ML about inclusion in gtk+: http://mail.gnome.org/archives/gnome-db-list/2004-April/msg00048.html Gtk+ team meeting where gtkgrid is mentioned: http://mail.gnome.org/archives/gtk-devel-list/2004-April/msg00130.html Isn't it a nice and promising project to work on? ;) Regards, Pachi ___ 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/
[pygtk] Spanish Tutorial: PDF Version ??
hi is there a pdf version of the spanish tutorial ? I would like to print it. or can I somehow generate a pdf from the HTML ? regards markus ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ___ 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/
Re: [pygtk] Wrapping Gtksheet
On Wed, 2005-05-18 at 12:07 +, Philippe Collet wrote: Hi list, I'm a beginner in the wrapping process. I'm trying to create a wrapper to use gtksheet with pygtk. This already exists, I believe, at least for the GTK+ 1.2 version: http://sourceforge.net/projects/python-gtkextra/ However, I know from wrapping this for C++ that gtkextra is not particularly good, plus most of it now has better replacements in GTK+ itself. The API is lousy and the behaviour is rather fragile. I am not encouraged by seeing the first and only release of the GTK+ 2 port being called 2.0, as if it could be instantly API stable. For a while, the GtkPlot stuff from gtkextra filled a real need, but I would choose the new gnumeric charting stuff instead now. I found this faq which is a little bit complicated because we have to modify the configure.in and to use autogen.sh. http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq01.011.htp Is this faq up to date and is there any other links except: http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq06.003.htp http://www-106.ibm.com/developerworks/linux/library/l-wrap/ I'm looking for any materials which can explain me the wrapping with pygtk. Thanks a lot, Philippe -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com www.openismus.com ___ 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/
Re: [pygtk] Spanish Tutorial: PDF Version ??
Markus Jais wrote: hi is there a pdf version of the spanish tutorial ? I would like to print it. IIRC there is a pdf inside the tarball. The reason it is not mentioned anywhere is because the quality of the pdf is not very good. We will be very happy is somebody has some time to play with the pdf generation. regards Lorenzo or can I somehow generate a pdf from the HTML ? regards markus ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ___ 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/ ___ 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/
Re: [pygtk] Inheriting window with widgets
On Tue, May 17, 2005 at 06:22:46PM -0400, Samantha wrote: 2. If #1 is not available, here is what I am trying to do. I have a main window with a tree on the left side of a window. The tree is in a table. When the user clicks on a tree widget(?), something happens on the right side. I have been able to send a window as an argument to the function that does things on the right side of the window, but the widgets embedded in the window (being sent as an argument) doesn't appear to get inherited. I learned that I cannot have more than one type of gtkWidget in a gtkWindow, so I am not sure how I can go about accomplishing what I am trying to do. This is usually called master/detail. The tree is your master and the the right side is the detail. I'd do this with a paned window, with a notebook on the right hand side that has Show Tabs set to No (programatically: notebook.set_show_tabs(gtk.FALSE); I'd leave the tabs visible while testing). Each page of the notebook will contain the different widgets you want to show, so you just have to switch pages in response to the tree selection to show the correct widget. Dave Cook ___ 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/
Re: [pygtk] Inheriting window with widgets
On Wed, May 18, 2005 at 12:23:41AM -0500, Doug Quale wrote: 2. If #1 is not available, here is what I am trying to do. I have a main window with a tree on the left side of a window. The tree is in a table. When the user clicks on a tree widget(?), something happens on the right side. I have been able to send a window as an argument to the function that does things on the right side of the window, but the widgets embedded in the window (being sent as an argument) doesn't appear to get inherited. I learned that I cannot have more than one type of gtkWidget in a gtkWindow, so I am not sure how I can go about accomplishing what I am trying to do. To put multiple widgets in a GTK+ window, you need to use a layout container widget that allows multiple child widgets. Examples of these widgets are HBox, VBox, HPaned, VPaned, and Table. It may be that I don't understand exactly where you are stuck. One thing that the text suggests to me is that he is supplying a /window/ as an argument to the function that does things on the right side of the window. He should be careful to extract the first child of this window or supply a toplevel which /is/ insertable into container, or else he'll have trouble for the obvious reasons. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125 ___ 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/
Re: [pygtk] Wrapping Gtksheet
Hello, I just wanted to let you know that I would be willing to help with this. I am in dire need of a GtkGrid/PyGrid-like solution, and I would love to see this included in the standard gtk+ library. As I am not a very good C programmer (even though I understand C code pretty good), I could assist in documentation and testing, especially for the python part, so if you need any help, please let me know. Niklas. Rafael Villar Burke schrieb: Christian Robottom Reis wrote: On Wed, May 18, 2005 at 12:07:00PM +, Philippe Collet wrote: I'm a beginner in the wrapping process. I'm trying to create a wrapper to use gtksheet with pygtk. Philippe, it's great having some more people wrapping libraries like crazy!. But remember that there's ongoing work to add introspection capabilities to gobject, and it would make bindings mostly automatic. First question would be: why not work on GtkGrid, which /has/ a wrapper and will probably be less work to adapt? This is indeed a great suggestion. Philippe, would you dare to have a look to GtkGrid? It could eventually get into gtk+ itself and the problem would be solved at its root. If you're willing to hack on it here you have some additional information: GtkGrid design document and comments thread on gtk+ mailing list: http://mail.gnome.org/archives/gtk-devel-list/2004-April/msg00137.html Some more comments on gnome-db ML about inclusion in gtk+: http://mail.gnome.org/archives/gnome-db-list/2004-April/msg00048.html Gtk+ team meeting where gtkgrid is mentioned: http://mail.gnome.org/archives/gtk-devel-list/2004-April/msg00130.html Isn't it a nice and promising project to work on? ;) Regards, Pachi ___ 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/ ___ 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/
Re: [pygtk] Inheriting window with widgets
On Wed, 2005-05-18 at 06:17 +0200, Danny Milosavljevic wrote: something like the attached program helps ? Wow! This is perfect. It was exactly what I wanted. Thanks very much. Once my project (currently a secret) is completed, I will post a link to the code. Sam ___ 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/
[pygtk] GtkWarning: gtk_tree_view_append_column
Hi All, I have been using a treeview to display data. The first time I load it data everything works, but sometimes when I try to load another or the same data file, this message is sent: GtkWarning: gtk_tree_view_append_column: assertion `column-tree_view == NULL' failed self._spp_treeview.append_column(self.spp) At the second time this message is sent, the data is improperly loaded. The method I use to clear treeview is: self.liststore.clear() self.spp.clear() ## gtk.TreeViewColumn self.seqs.clear()##gtk.TreeViewColumn To create a new set of data on Liststore: for rows in self.data: ## where self.data contains tuples of data self.liststore.append([rows[0], rows[1]]) To display new set of data: self._seqs_treeview.append_column(self.seqs) self._spp_treeview.append_column(self.spp) I can't understand where is the problem and I didn't find any solved similiar problem on google. Does anyone could help me? Thanks Fred _ MSN Messenger: converse online com seus amigos . http://messenger.msn.com.br ___ 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/
Re: [pygtk] GtkWarning: gtk_tree_view_append_column
On Wed, May 18, 2005 at 07:45:09PM +, Frederico Arnoldi wrote: I have been using a treeview to display data. The first time I load it data everything works, but sometimes when I try to load another or the same data file, this message is sent: GtkWarning: gtk_tree_view_append_column: assertion `column-tree_view == NULL' failed self._spp_treeview.append_column(self.spp) Why are you appending the columns multiple times? They only need to be appended once, to set up the treeview -- once that's done you should be fine. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125 ___ 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/
Re: [pygtk] Inheriting window with widgets
Thanks to everyone for the responses. It was most helpful. I started my project using hboxes/vboxes but I found that resizing entry boxes was somewhat of a pain when I wanted the box to be 1 character wide (and visible). I read online that a solution to long entry boxes was to put empty labels around v/hbox. I didn't like that solution, as I thought it made the code look a bit cluttered (I could just call a function to pack the boxes with empty labels with a loop I suppose). Currently all my mini widgets is attached to a giant table. This allows me to make my buttons and entry boxes as small or as large as I would like. My initial idea was to implement a wizard or a tab based system. I didn't personally like how it would look hence I decided to go with my two frame/window idea which will look similar to the closed source program that I am trying to write. Again, thanks very much to everyone. Sam ___ 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/