Re: [pygtk] Turning the PyGTK+ brand into something more than it currently is

2012-11-19 Thread pier carteri
Hi to all, After a long time I'm back on python and gtk. I'm using gobject and I like it a lot... I totally agree with Rafael; we must start contributing to the Python GTK+3 in order to have a guide as complete as the one for pygtk. The second step can be to help Dieter as beta tester with his eff

[pygtk] pygoocanvas questions

2011-04-26 Thread pier carteri
Hi to all, I've a couple of questions regarding pygoocanvas. (I'm asking here but if there is a better place let me know! ) -suppose you have a canvas with many items (rects, text, lines), how can i empty the canvas? -with a GridItem I can create a grid with both vertical and horizontal lines; is

[pygtk] just for info [a bit OT]

2006-03-14 Thread pier carteri
Hi to all,I've just discover this:http://mail.python.org/pipermail/python-announce-list/2006-March/004773.htmlIt's not directly relate to pygtk but I think it' s a very nice project and someone on this list may help with ideas or code.thank you for your attention! Pier

Re: [pygtk] Whole App Cursor Setting

2005-10-30 Thread pier carteri
Hi Loris, this works for me --8

Re: [pygtk] Re: gnome.ui.AppBar Bug?

2005-08-19 Thread pier carteri
Hi Mystilleef, I don't know what the problem is, so I can't give you any solution, but I can suggest you a workaround: use a gtk.Statusbar, modify your code like this:     statusbar = gtk.Statusbar()         window.add(statusbar)         statusbar.pop(1)         statusbar.push(1, "It does not

[pygtk] create help for a multiplatform app

2005-07-28 Thread pier carteri
Hi to all, I'm developing a multiplatform app with python and gtk. It must work fine in linux and in window (maybe also OsX). As every good app It must have an help (better a contextual help) showing how to use it. But at this point I'm not sure what to do. I can see more than one  option: 1) Usi

Re: [pygtk] Is this the most reasonable way to put a stock icon in a Button?

2005-07-27 Thread pier carteri
Hi Francesco, probably I didn't undestand you question but: close_button = gtk.Button(stock =gtk.STOCK_CLOSE ) Is that what you need? For more info http://www.pygtk.org/pygtk2reference/class-gtkbutton.html#constructor-gtkbutton Regards Pier On 7/26/05, Francesco Marchetti-Stasi <[EMAIL PROTECTE

Re: [pygtk] set_text problem

2005-07-25 Thread pier carteri
Hi Ogz,On 7/25/05, Ogz <[EMAIL PROTECTED]> wrote: Here is a code that should show a text at a label and continue withssh connection:...some code...txt = "test"self.lbl_burn.set_text(txt)self.MainWindow_Sefir.show_all () I suspect (but I'm not completely sure) that here you should use while

Re: [pygtk] Adding key bindings to a SourceView instance

2005-06-07 Thread pier carteri
Hi Oliver, you can connect your SourceView.View to the key_press_event: (view is a gtkSourceview.View) view.connect("key_press_event", self.view_key_press)   def view_key_press(widget, event):     if (event.keyval == gtk.gdk.keyval_from_name("f") and    event.state == gtk.gdk.CONTROL_MASK):

[pygtk] sourceview and gtkmozembed for windows

2005-06-01 Thread pier carteri
Hi to all, any idea where I can find packages for windows platform of  gtksourceview  and gtkmozembed. I know both of them should be portable to win but I'm not able  to  find  any  infos  on how  to  do  it . At the moment I don't have an environment for compiling C code under windows so if you an

[pygtk] gdl.DockBar question

2005-05-16 Thread pier carteri
Hi to all, I've played a bit with gdl package (thanks John for you previous mail). In my example (see attach) I've problems with the DockBar because it never shows icons when items are minimized. Please consider that I don't have any documents about these widget, and my code is merely based on gnom

[pygtk] gtk dock widget

2005-05-16 Thread pier carteri
Hi to all, I'm looking for a dock widget to use in my pygtk app. I' ve searched a bit with  google and  I' ve found  that  probably  gdl  is  what  i need. But I was not able to find any infos/homepage of this project. Have you any tips or ideas? Thanks Pier __

[pygtk] error loading gtksourceview

2005-02-20 Thread pier carteri
Hi to all, I' ve downloaded and installed gtksourceview v 1.1.92 and then downloaded and installed gnome-python-extra 2.9.4. But when I try to load gtksourceview in python I get the following error: >>> import gtksourceview Traceback (most recent call last): File "", line 1, in ? ImportError: /us

Re: [pygtk] Entry widget doesn't call "insert-at-cursor" for me

2004-01-02 Thread Pier Carteri
;key-press-event", self.showsig, "E1 insert") Hope this can help! Regards Pier -- Pier Carteri <[EMAIL PROTECTED]> ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] change color to a gnomePrintFont

2003-12-15 Thread Pier Carteri
Hi to all! I'm looking for the possibility to change some properties of a gnomePrintFont. More precisely I want to be able to change the color, the weight (i.e. normal, bold) and the style (i.e. normal oblique/italic). How can I do it? Thank you! Pier -- Pier Carteri <[EMAIL P

Re: [pygtk] gnomeprint questions

2003-11-28 Thread Pier Carteri
truncate it (and put a small arrow to indicate it). This is ok for my needs but probably not for your, so change it... I hope this can help! Regards Pier Il mer, 2003-11-26 alle 17:18, Fernando San MartÃn W. ha scritto: > El miÃ, 26-11-2003 a las 12:51, Pier Carteri escribiÃ: > >

[pygtk] gnomeprint questions

2003-11-26 Thread Pier Carteri
ht of the string I'm showing? -Are there any easy way to print text according with the tags into the textBuffer (at least for foreground-color, weight and style properties)? Thanks to all! Pier Carteri -- Pier Carteri <[EMAIL PROTECTED]>

[pygtk] gnomeprint coordinates

2003-11-22 Thread Pier Carteri
Hi to all, I'm playing with gnomeprint and I've the following question: as default the origin of the coordinates is on the bottom-left corner but I prefer it on the top-left, how can I change it? Thank you! Best regards! Pier -- Pier Carteri <[EM

Re: [pygtk] Py_Shell.py

2003-11-05 Thread Pier Carteri
ks but I'm not sure... Best regards! Pier Il mer, 2003-11-05 alle 14:23, John Hunter ha scritto: > >>>>> "Pier" == Pier Carteri <[EMAIL PROTECTED]> writes: > > Pier> I attached a new version of Py_Shell that fix a couple of > Pier> pr

Re: [pygtk] Py_Shell.py

2003-11-05 Thread Pier Carteri
bedded inside. > Currently, the Py_Shell inside the gui is a completely new one that has > no knowlege of the Gui.py functions/variables. Is there a way for > Py_Shell to have acess to them? > > thanks again, > ~ Yang > > > On Tue, 2003-11-04 at 11:46, P

Re: [pygtk] Py_Shell.py

2003-11-04 Thread Pier Carteri
Hi Yang! main_shell=Py_Shell.Shell_Gui(with_window=0) > xml.get_widget("vpaned1").add2(main_shell.gui) I've looked to my code, I think the solution is that you miss a main_shell.gui.show_all() In my code I call it with the empty frame, that's why you see only the frame. You ca fix it: put line 31

Re: [pygtk] Py_Shell.py

2003-11-04 Thread Pier Carteri
27;2.0')' > to make it work. > > 2) If I scroll back in history using 'up' I am not able to get back to > the empty prompt afterwards. > > 3) Maybe the standalone version could react on 'CTRL-d' by exiting? > > Attached is a

Re: [pygtk] Py_Shell.py

2003-11-04 Thread Pier Carteri
ng here, but I think the theory is correct. In > any case, look at the frame created in the Shell_Gui class and utilise > that directly. > > Cheers, > Malcolm > ___ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mail

Re: [pygtk] put small images into a TextView border window

2003-11-03 Thread Pier Carteri
n be useful to someone else.. Best regards! Pier Il gio, 2003-10-30 alle 10:22, Pier Carteri ha scritto: > Hi to all, > can someone tell me how to put an image into the border window of a > gtkTextView? > Any examples? > -- Pier Carteri <[EMAIL PROTECTED]> <>

[pygtk] put small images into a TextView border window

2003-10-30 Thread Pier Carteri
Hi to all, can someone tell me how to put an image into the border window of a gtkTextView? Any examples? Thank you! Best regards Pier Carteri -- Pier Carteri <[EMAIL PROTECTED]> ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.

[pygtk] control pasted text

2003-10-28 Thread Pier Carteri
this is the correct solution. Has anyone some tips about this? Where should I look for clipboard informations? Thank you! Best Regards Pier Carteri -- Pier Carteri <[EMAIL PROTECTED]> ___ pygtk mailing list [EMAIL PROTECTED] http://www.d

[pygtk] gnome-print tutorial

2003-10-13 Thread Pier Carteri
mples? Thankyou! Best regards Pier -- Pier Carteri <[EMAIL PROTECTED]> ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Re: [pygtk] Get characters in a TextView

2003-10-11 Thread Pier Carteri
Besides, I don't know how to create a TextIter of the > current offset of the cursor. > > Why all this? I want a TextView where no 2 spaces can be written one > after the other, just like in lyx. > -- Pier Carteri <[EMAIL PROTECTED]> _

[pygtk] Py_Shell.py

2003-10-04 Thread Pier Carteri
Jon Anderson for pygtk-console.py James Henstridge for gtkcons.py (Gtk 1 version) so many thanks to them! I' sending this with the hope it can be usefull to someone else. Best regards Pier Carteri -- Pier Carteri <[EMAIL PROTECTED]> # # Py_Shell.py : inserts the python

[pygtk] draw on TextView borders

2003-02-15 Thread Pier Carteri
Has anyone already done this? How? Any tips or code example will be great Thank you! Pier Carteri ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] error with libglade

2002-12-12 Thread Pier Carteri
Hi to all, I was playing a bit with pygtk+Glade+libglade. I've created a minimal Gnome gui with Glade (just click on the Glade Palette the Gnome-Application-Window button and save the file). When I've tried to display the gui I've received the following errors/warnings. (test:814): GLib-GObject-WA

Re: [pygtk] send commands to main window

2002-12-10 Thread Pier Carteri
Il mar, 2002-12-10 alle 02:50, John Finlay ha scritto: > I figured out how to get the program to work with Pythoon 2.2 and PyGTK2: > > - pygtk 1.99.13 is compiled with threads disabled by default (0.6.11 has > threads enabled by default it seems) so I had to run configure Can you explain me why

Re:[2] [pygtk] replace tab with spaces

2002-07-22 Thread Pier Carteri
with some spaces. I've tried to added a callback to the "insert-text" signal but using this event I obtain a buffer with some spaces after a tab (instead of one with only spaces). Which signal should i use? Thank you Pier Carteri Christian Reis <[EMAIL PROTECTED]> wrote o

Re: [pygtk] TextBuffer and g_utf8_validate

2002-03-04 Thread Pier Carteri
f.buffer.insert(start,text,len(text)) and everythings works! Sorry again for the spam Pier Il lun, 2002-03-04 alle 15:00, Pier Carteri ha scritto: > Hi again, > Thanks Matt, can you tell me how to check if a file contains such > chars, and in that case how to convert in a format th

Re: [pygtk] TextBuffer and g_utf8_validate

2002-03-04 Thread Pier Carteri
04, 2002 at 02:50:57PM +0100, Pier Carteri wrote: > > > > editor(pid:1549): Gtk-CRITICAL **: file gtktextbuffer.c line 476 > > (gtk_text_buffer_emit_insert): assertion 'g_utf8_validate (text, len, > > NULL)' failed > > > > The files are normal text file;

[pygtk] TextBuffer and g_utf8_validate

2002-03-04 Thread Pier Carteri
Hi, as said in my previous post (I hope not boring you ) I'm working on a code editor based on GtkTextBuffer and GtkTextView; the method for load a file is something like this: try: file=open(self.name,'r') text=file.read() start=self.buf

Re: [pygtk] gtkMessageDialog

2002-03-03 Thread Pier Carteri
Hi, the solution of this problem was simply to update my configuration: I've download and install more recent rpm for rawhide (1.3.14) and pygtk 1.99.7 So for other RedHat user that want to use precompiled binaries I strongly raccomanded not use the following packages: gtk2-1.3.12-90 gtk2-devel-1.

[pygtk] gtk.TextIter

2002-02-02 Thread Pier Carteri
Hi to all, I'm learning the new gtk2 and in particular the multiline text widgets (TextBuffer TextView & Co.) My idea is to see if I can use theese widgets in my app. The app is basically and editor for Python and since now I've used the Scintilla widget that's very cool! So first question: Is it

Re: [pygtk] mainloop vs mainiteration

2001-10-12 Thread Pier Carteri
I'm sorry, I've mispelled: the method is not mainiterator but mainiteration; the question is the same: mainiteration vs mainloop On 12 Oct 2001 10:36:19 +0200, Pier Carteri wrote: > > Hi to all, > I've created a small class that show a splash screen with an image and

[pygtk] mainloop vs mainiterator

2001-10-12 Thread Pier Carteri
is the mainloop call. I've noticed that the gtk module has also a mainiterator method that probably is what I need: can you please tell me what's the difference between mainloop and mainiterator ? Best Regards Pier Carteri ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk

[pygtk] pixmap and label on notebook

2001-02-03 Thread Pier Carteri
t , but it will be better if i create it by code; can you suggest me how to do it? Thanks a lot Pier Carteri [EMAIL PROTECTED] ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk