[pygtk] easy question :)

2006-10-18 Thread enache alex
Hello there. I want to know how can I set the internet settings(IP,net mask, proxy, etc) from within python(I'll have a window created with pygtk in which I will fill some textboxes, and when I press OK the modifications will be made to the IP,..etc). Thanks 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail.___
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] PyGTK .app bundle for MacOS X?

2006-10-18 Thread David M. Cook
On Wed, Oct 18, 2006 at 09:29:27PM -0700, David M. Cook wrote:

>  Both of them also have a tendency to
> overdo dependencies IMO.

I should take that back about dependencies.  Darwinports does a pretty
straightforward job with this:

david-cooks-computer:~ davidcook$ sudo port install py-gtk2
--->  Installing pkgconfig 0.21_0
--->  Installing glib2 2.12.4_0
--->  Installing atk 1.12.2_0
--->  Installing zlib 1.2.3_0
--->  Installing libpng 1.2.10_2+darwin_8
--->  Installing freetype 2.1.10_1
--->  Installing fontconfig 2.3.2_2+macosx
--->  Installing render 0.9_0
--->  Installing xrender 0.9.0_0+darwin_8
--->  Installing Xft2 2.1.7_0
--->  Installing cairo 1.2.4_1
--->  Installing pango 1.14.3_0
--->  Installing jpeg 6b_1
--->  Installing tiff 3.8.2_0+darwin_8
--->  Installing gtk2 2.10.3_0
--->  Installing libxml2 2.6.23_0
--->  Installing libglade2 2.6.0_1
--->  Installing python24 2.4.3_1+darwin_8
--->  Installing py-numeric 24.2_0+darwin_8+macosx
--->  Installing py-cairo 1.2.2_0
--->  Installing py-gobject 2.12.1_0
--->  Installing py-gtk2 2.10.1_0

Apart from the iffy inclusion of numeric, there don't seem to be any
unneeded dependencies (your session might look a little different as I've
already installed stuff like tetex, which brings in a lot of dependencies).
___
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] question about a updating a textview as an object

2006-10-18 Thread shawn bright
hey there.i have a gtk GUI app that uses 4 text views to update info from 4 different threads. the code i use to update the view is this.def buffer_add(self,  input_data, buffer, textview):    self.buffer.insert
(self.buffer.get_end_iter(), input_data)    if self.buffer.get_line_count() > 400:    self.buffer.delete(self.buffer.get_start_iter(),    self.buffer.get_iter_at_line
(200))    mark = self.buffer.create_mark("end",    self.buffer.get_end_iter(), False)    self.textview.scroll_to_mark(mark, 0.05, True, 0.0, 1.0)now, i have the same function in all four threads. Each updates a different textview.
the threads run in a class threading.thread.  the code that calls them is like this.S1 = Serial1(self.Input1Buffer, self.TTYS14View)S1.start()each thread has some initial code like this
class Serial1(threading.Thread):    def __init__(self, buffer, textview):    threading.Thread.__init__(self)    self.buffer = buffer    self.iter = self.buffer.get_end_iter()    self.textview
 = textviewmy question is. from the main app, if i pass the textview and buffer to each thread that needs one, can i, from the thread pass those as objects to one function that will update the text view? if so, do i need to make that function a global object ? or can i just declare it at the beginning of the program ?
does this question make sense? if you have read this far, i thank you for your time.shawn
___
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] PyGTK .app bundle for MacOS X?

2006-10-18 Thread David M. Cook
On Wed, Oct 18, 2006 at 11:39:51PM +0200, Wolfgang Keller wrote:

> I'm looking for a way that allows a clueless Python scripting dilettant like 
> me to build a double-clickable .app bundle of a PyGTK application for MacOS 
> X.
> 
> Any ideas? Such as e.g. a pre-made "empty" .app bundle that includes already 
> the Python interpreter and a compiled PyGTK module?

I don't know of such an app bundle.  You could compile all the packages
yourself.  I've done it before, but it's very tedious as you often have to
backtrack to get dependencies and fuss over the config settings.

Instead, I would suggest darwinports: http://darwinports.opendarwin.org/ 
Or fink: http://fink.sf.net
They've done all this work for you.

I prefer darwinports (though I'd much rather have an RPM based system than
either of those).  You do have to use *their* copy of python (unless
there's a way to get around that.)  Both of them also have a tendency to
overdo dependencies IMO.

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/


[pygtk] Re: Interrupting a recursive mainloop from the outside...

2006-10-18 Thread Thomas Mills Hinkle
On 10/18/06, Thomas Mills Hinkle <[EMAIL PROTECTED]> wrote:
I'm trying to interrupt an embedded mainloop from my application. The mainloop is run inside of a dialog (actually, it's a dialog that was then reframed in the main app (in a notebook tab) in order to create the feel of multiple "screens" rather than multiple windows). Anyway, when the window on the main app is closed, my app quits (main_quit()), but the recursive mainloop isn't getting killed.
I've tried making the dialog emit a RESPONSE_CANCEL signal and I've tried actually grabbing the cancel button in the dialog and making it emit a 'clicked' signal, but neither of these things work.Is there an easy way to interrupt the embedded mainloop or should do I have to abandon my loopy swallowed-dialog design?
I solved this myself but thought I'd write my solution below for posterity's sake.Thanks to the incredibly useful (but new to me) gtk.main_level() method, I was able to figure out what my problem was. When my main window's "quit" method was called, it was of course being called in the embedded mainloop, so the remaining mainloop was actually my main mainloop, which explains why all my efforts to kill the "dialog" were in vain.
The solution was to make my main app's quit_cb check whether it was being called from an embedded mainloop.e.g.def quit_cb (self, *args):    if main_level() > 1:    gtk.main_quit()
    gobject.idle_add(self.quit_cb,100)    else: # do normal stuff I do when the app quits... gtk.main_quit() Tom
___
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] PyGTK .app bundle for MacOS X?

2006-10-18 Thread Wolfgang Keller
Hello,

I'm looking for a way that allows a clueless Python scripting dilettant like 
me to build a double-clickable .app bundle of a PyGTK application for MacOS 
X.

Any ideas? Such as e.g. a pre-made "empty" .app bundle that includes already 
the Python interpreter and a compiled PyGTK module?

TIA,

Sincerely,

Wolfgang Keller

-- 
My email-address is correct.
Do NOT remove ".nospam" to reply.

___
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] display a notification near of the trayicon

2006-10-18 Thread Danni Moiseyev
you can look into pympd  code it looks like this program uses the tooltip, but it can show it without a mouse-over event.
On 10/18/06, Danni Moiseyev <[EMAIL PROTECTED]> wrote:
i checked that out, egg.trayicon.TrayIcon has a get_position() method, which return x,y, i found the method quite unreliable, it sometimes gaves me (0,0) from some reason, here is the new code:#! /usr/bin/python

import pygtkpygtk.require("2.0")import gtk,gobjectimport egg.trayiconclass TrayDemonstration: def close_balloon(self,a,b):   print "closing balloon..."
   self.balloon.destroy
();    def __init__(self):   window = gtk.Window(type=gtk.WINDOW_POPUP);   self.balloon = window;   label = gtk.Label("Balloon!!   \nanother row!");
   eventbox = gtk.EventBox()   
eventbox.set_events (gtk.gdk.BUTTON_PRESS_MASK)   eventbox.connect("button-press-event",self.close_balloon)   # close balloon is for closing the balloon,   # the status icon is kept in self.trayicon

   # so it could be used in the whole class   eventbox.add(label)   window.add(eventbox);        ty = egg.trayicon.TrayIcon("TrayIcon")      box = gtk.EventBox()   pixbuf = 
gtk.gdk.pixbuf_new_from_file
("/usr/share/icons/gnome/scalable/status/connect_creating.svg")   image = gtk.Image()   image.set_from_pixbuf(pixbuf)   box.add(image)   ty.add(box)   ty.show_all()   coordinates = ty.get_position

()    rect = rect_class(coordinates[0],coordinates[1]);    size = ty.get_size()    window.move(rect.x,rect.y+size[1]/2) # you need to play with the coordinates, it sometimes gives zero X on my box
   # cause you can't get the toolbar width, so it might hide somepixels
   # of the toolbar that the trayicon is packed into it.   gobject.timeout_add(5000, window.destroy) # simple timeout   # to close the balloon after 3 secs   window.show_all();
class rect_class:
  def __init__(self,x,y):        self.x = x        self.y = ydef main(): gtk.main() return 0if __name__ == '__main__': program = TrayDemonstration() main()

On 10/18/06, Khiraly <[EMAIL PROTECTED]> wrote:

2006. 10. 18, szerda keltezéssel 19.37-kor Danni Moiseyev ezt írta:> oh sorry, readr is just a global variable, you should probably use> self.trayicon,By trayicon do you mean?:import egg.trayicon

 tray = egg.trayicon.TrayIcon ('application name')The trayicon does not have get_geometry() function.Or do you mean the new (new in pyGtk 2.10, on debian it is just 2.8)gtk.StatusIcon class, which has a get_geometry() function.
The most simple way (I think) that I send you a little exampleapplication, can you fix this to work?(do you use pygtk 2.10?)It would help a lot!Khiraly#! /usr/bin/python

import pygtkpygtk.require("2.0")import gtkimport egg.trayiconclass TrayDemonstration:  def close_balloon(self):return True  def __init__(self):window = gtk.Window

(type=gtk.WINDOW_POPUP);label = gtk.Label("Balloon!!");eventbox = gtk.EventBox()eventbox.set_events (gtk.gdk.BUTTON_PRESS_MASK)eventbox.connect("button-press-event",self.close_balloon

)# close balloon is for closing the balloon,# the status icon is kept in self.trayicon# so it could be used in the whole classeventbox.add(label)window.add(eventbox);ty = 
egg.trayicon.TrayIcon('Demo')a,rect,c =ty.get_geometry();  #getting the X,Y into rectwindow.move(rect.x,abs(rect.y-(ty.get_size()+5))) # this is a littlehack# cause you can't get the toolbar width, so it might hide some
pixels# of the toolbar that the trayicon is packed into it.gobject.timeout_add(3000, window.destroy) # simple timeout# to close the balloon after 3 secswindow.show_all();def main():
  gtk.main()  return 0if __name__ == '__main__':  program = TrayDemonstration()  main()_it works on my box, and you need to play with the 
Window.move to spot the right position, there might be better solution for a balloon, but i find this quite simple.

> PS. if you want a "static" location you don't have to use the status> icon coordinates>I dont want static coordinates.> On 10/18/06, Khiraly <

[EMAIL PROTECTED]> wrote:> I try to launch to your example code, but I cant figure out> this line:> ty= readr.trayicon>> Can you explain me what is 'readr' and where should i create
> it?>> Thank you very much!>>

___
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] display a notification near of the trayicon

2006-10-18 Thread Danni Moiseyev
i checked that out, egg.trayicon.TrayIcon has a get_position() method, which return x,y, i found the method quite unreliable, it sometimes gaves me (0,0) from some reason, here is the new code:#! /usr/bin/python
import pygtkpygtk.require("2.0")import gtk,gobjectimport egg.trayiconclass TrayDemonstration: def close_balloon(self,a,b):   print "closing balloon..."   self.balloon.destroy
();    def __init__(self):   window = gtk.Window(type=gtk.WINDOW_POPUP);   self.balloon = window;   label = gtk.Label("Balloon!!   \nanother row!");   eventbox = gtk.EventBox()   
eventbox.set_events (gtk.gdk.BUTTON_PRESS_MASK)   eventbox.connect("button-press-event",self.close_balloon)   # close balloon is for closing the balloon,   # the status icon is kept in self.trayicon
   # so it could be used in the whole class   eventbox.add(label)   window.add(eventbox);        ty = egg.trayicon.TrayIcon("TrayIcon")      box = gtk.EventBox()   pixbuf = gtk.gdk.pixbuf_new_from_file
("/usr/share/icons/gnome/scalable/status/connect_creating.svg")   image = gtk.Image()   image.set_from_pixbuf(pixbuf)   box.add(image)   ty.add(box)   ty.show_all()   coordinates = ty.get_position
()    rect = rect_class(coordinates[0],coordinates[1]);    size = ty.get_size()    window.move(rect.x,rect.y+size[1]/2) # you need to play with the coordinates, it sometimes gives zero X on my box   # cause you can't get the toolbar width, so it might hide somepixels
   # of the toolbar that the trayicon is packed into it.   gobject.timeout_add(5000, window.destroy) # simple timeout   # to close the balloon after 3 secs   window.show_all();class rect_class:
  def __init__(self,x,y):        self.x = x        self.y = ydef main(): gtk.main() return 0if __name__ == '__main__': program = TrayDemonstration() main()
On 10/18/06, Khiraly <[EMAIL PROTECTED]> wrote:
2006. 10. 18, szerda keltezéssel 19.37-kor Danni Moiseyev ezt írta:> oh sorry, readr is just a global variable, you should probably use> self.trayicon,By trayicon do you mean?:import egg.trayicon
 tray = egg.trayicon.TrayIcon ('application name')The trayicon does not have get_geometry() function.Or do you mean the new (new in pyGtk 2.10, on debian it is just 2.8)gtk.StatusIcon class, which has a get_geometry() function.
The most simple way (I think) that I send you a little exampleapplication, can you fix this to work?(do you use pygtk 2.10?)It would help a lot!Khiraly#! /usr/bin/python
import pygtkpygtk.require("2.0")import gtkimport egg.trayiconclass TrayDemonstration:  def close_balloon(self):return True  def __init__(self):window = gtk.Window
(type=gtk.WINDOW_POPUP);label = gtk.Label("Balloon!!");eventbox = gtk.EventBox()eventbox.set_events (gtk.gdk.BUTTON_PRESS_MASK)eventbox.connect("button-press-event",self.close_balloon
)# close balloon is for closing the balloon,# the status icon is kept in self.trayicon# so it could be used in the whole classeventbox.add(label)window.add(eventbox);ty = 
egg.trayicon.TrayIcon('Demo')a,rect,c =ty.get_geometry();  #getting the X,Y into rectwindow.move(rect.x,abs(rect.y-(ty.get_size()+5))) # this is a littlehack# cause you can't get the toolbar width, so it might hide some
pixels# of the toolbar that the trayicon is packed into it.gobject.timeout_add(3000, window.destroy) # simple timeout# to close the balloon after 3 secswindow.show_all();def main():
  gtk.main()  return 0if __name__ == '__main__':  program = TrayDemonstration()  main()_it works on my box, and you need to play with the 
Window.move to spot the right position, there might be better solution for a balloon, but i find this quite simple.
> PS. if you want a "static" location you don't have to use the status> icon coordinates>I dont want static coordinates.> On 10/18/06, Khiraly <
[EMAIL PROTECTED]> wrote:> I try to launch to your example code, but I cant figure out> this line:> ty= readr.trayicon>> Can you explain me what is 'readr' and where should i create
> it?>> Thank you very much!>>
___
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] display a notification near of the trayicon

2006-10-18 Thread Khiraly
Hi!

I want to write an application which can display near of the trayicon a
notification mini-window (no window decoration but more powerful as the
gtk.Tooltips(), ie I need multiple line bold an italic text display)

The ideais writing an application (dictionary), which display the
translation of the current selection (so its enough to select a word in
any application and the translation just showing up in the top of the
display)

Any idea how to achieve this?
Pretty much the same as the Azureus torrent client notification
messages. (just that is in java using swt, and I need python using
pygtk)

Thanks in advance!

Khiraly

___
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] display a notification near of the trayicon

2006-10-18 Thread Khiraly
I try to launch to your example code, but I cant figure out this line:
ty= readr.trayicon

Can you explain me what is 'readr' and where should i create it?

Thank you very much!


2006. 10. 18, szerda keltezéssel 18.08-kor Danni Moiseyev ezt írta:
> Hey Khirly, i managed to do the same thing some days ago.
> I used gtk.StatusIcon what i basicly did is a POPUP window that is
> unmanged by the WM so it wont show up in the task bar, i used the
> gtk.StatusIcon.get_geometry() for the cordinets (X,Y) of the
> statusicon, from there is very easy work with gtk.Window, here is a
> snippt:
> 
> window = gtk.Window(type=gtk.WINDOW_POPUP);
> label = gtk.Label("Balloon!!");
> eventbox = gtk.EventBox()
> eventbox.set_events (gtk.gdk.BUTTON_PRESS_MASK)
> eventbox.connect("button-press-event",self.close_balloon)
> # close balloon is for closing the balloon, the status icon is kept in
> self.trayicon so it could be used in the whole class 
> 
> eventbox.add(label)
> window.add(eventbox);
> ty= readr.trayicon
> a,rect,c =ty.get_geometry();  #getting the X,Y into rect
> 
> window.move(rect.x,abs(rect.y-(ty.get_size()+5))) # this
> is a little hack cause you can't get the toolbar width, so it might
> hide some pixels of the toolbar that the trayicon is packed into it.
>  
> gobject.timeout_add(3000, window.destroy) # simple timeout
> to close the balloon after 3 secs
> window.show_all();  
> 
> hope it will help ya.
> PS. this is pygtk 2.10 only! if you don't have it in your repo's try
> checking testing repository(for instance Archlinux got pygtk2.10 in
> testing).
> 
> Cheers, danni.
> 
> On 10/18/06, Khiraly <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I want to write an application which can display near of the
> trayicon a
> notification mini-window (no window decoration but more
> powerful as the
> gtk.Tooltips(), ie I need multiple line, bold an italic text
> to display, and a button) 
> 
> The idea is writing an application (dictionary), which display
> the
> translation of the current selection (so its enough to select
> a word in
> any application and the translation just showing up in the top
> of the 
> display)
> 
> Any idea how to achieve this?
> Pretty much the same as the Azureus torrent client
> notification
> messages. (just that is in java using swt, and I need python
> using
> pygtk)
> 
> Thanks in advance! 
> 
> Khiraly
> 
> ___
> 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] display a notification near of the trayicon

2006-10-18 Thread Danni Moiseyev
Whoops, i didn't read the whole email(sorry), you can easily achieve the Azureus "balloon" by giving the window your wanted X,Y(width of screen - window width,height of screen - window width) coordinates.
On 10/18/06, Danni Moiseyev <[EMAIL PROTECTED]> wrote:
Hey Khirly, i managed to do the same thing some days ago.I used gtk.StatusIcon what i basicly did is a POPUP window that is unmanged by the WM so it wont show up in the task bar, i used the gtk.StatusIcon.get_geometry
() for the cordinets (X,Y) of the statusicon, from there is very easy work with 
gtk.Window, here is a snippt:    window = gtk.Window(type=gtk.WINDOW_POPUP);    label = gtk.Label("Balloon!!");    eventbox = gtk.EventBox()    eventbox.set_events

(gtk.gdk.BUTTON_PRESS_MASK)    eventbox.connect("button-press-event",self.close_balloon)  # close balloon is for closing the balloon, the status icon is kept in self.trayicon so it could be used in the whole class
        eventbox.add(label)    window.add(eventbox);        ty= readr.trayicon    a,rect,c =ty.get_geometry();  #getting the X,Y into rect        
window.move(rect.x,abs(rect.y-(ty.get_size()+5))) # this is a little hack cause you can't get the toolbar width, so it might hide some pixels of the toolbar that the trayicon is packed into it.     
gobject.timeout_add(3000, window.destroy) # simple timeout to close the balloon after 3 secs    window.show_all();  hope it will help ya.PS. this is pygtk 2.10 only! if you don't have it in your repo's try checking testing repository(for instance Archlinux got 
pygtk2.10 in testing).Cheers, danni.On 10/18/06, Khiraly <
[EMAIL PROTECTED]> wrote:
Hi!I want to write an application which can display near of the trayicon anotification mini-window (no window decoration but more powerful as thegtk.Tooltips(), ie I need multiple line, bold an italic text to display, and a button)
The idea is writing an application (dictionary), which display thetranslation of the current selection (so its enough to select a word inany application and the translation just showing up in the top of the
display)Any idea how to achieve this?Pretty much the same as the Azureus torrent client notificationmessages. (just that is in java using swt, and I need python usingpygtk)Thanks in advance!
Khiraly___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] display a notification near of the trayicon

2006-10-18 Thread Danni Moiseyev
Hey Khirly, i managed to do the same thing some days ago.I used gtk.StatusIcon what i basicly did is a POPUP window that is unmanged by the WM so it wont show up in the task bar, i used the gtk.StatusIcon.get_geometry() for the cordinets (X,Y) of the statusicon, from there is very easy work with 
gtk.Window, here is a snippt:    window = gtk.Window(type=gtk.WINDOW_POPUP);    label = gtk.Label("Balloon!!");    eventbox = gtk.EventBox()    eventbox.set_events
(gtk.gdk.BUTTON_PRESS_MASK)    eventbox.connect("button-press-event",self.close_balloon)  # close balloon is for closing the balloon, the status icon is kept in self.trayicon so it could be used in the whole class
        eventbox.add(label)    window.add(eventbox);        ty= readr.trayicon    a,rect,c =ty.get_geometry();  #getting the X,Y into rect        
window.move(rect.x,abs(rect.y-(ty.get_size()+5))) # this is a little hack cause you can't get the toolbar width, so it might hide some pixels of the toolbar that the trayicon is packed into it.     
gobject.timeout_add(3000, window.destroy) # simple timeout to close the balloon after 3 secs    window.show_all();  hope it will help ya.PS. this is pygtk 2.10 only! if you don't have it in your repo's try checking testing repository(for instance Archlinux got 
pygtk2.10 in testing).Cheers, danni.On 10/18/06, Khiraly <[EMAIL PROTECTED]> wrote:
Hi!I want to write an application which can display near of the trayicon anotification mini-window (no window decoration but more powerful as thegtk.Tooltips(), ie I need multiple line, bold an italic text to display, and a button)
The idea is writing an application (dictionary), which display thetranslation of the current selection (so its enough to select a word inany application and the translation just showing up in the top of the
display)Any idea how to achieve this?Pretty much the same as the Azureus torrent client notificationmessages. (just that is in java using swt, and I need python usingpygtk)Thanks in advance!
Khiraly___pygtk mailing list   pygtk@daa.com.auhttp://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/


[pygtk] display a notification near of the trayicon

2006-10-18 Thread Khiraly
Hi!

I want to write an application which can display near of the trayicon a
notification mini-window (no window decoration but more powerful as the
gtk.Tooltips(), ie I need multiple line, bold an italic text to display, and a 
button)

The idea is writing an application (dictionary), which display the
translation of the current selection (so its enough to select a word in
any application and the translation just showing up in the top of the
display)

Any idea how to achieve this?
Pretty much the same as the Azureus torrent client notification
messages. (just that is in java using swt, and I need python using
pygtk)

Thanks in advance!

Khiraly

___
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] Interrupting a recursive mainloop from the outside...

2006-10-18 Thread Thomas Mills Hinkle
I'm trying to interrupt an embedded mainloop from my application. The mainloop is run inside of a dialog (actually, it's a dialog that was then reframed in the main app (in a notebook tab) in order to create the feel of multiple "screens" rather than multiple windows). Anyway, when the window on the main app is closed, my app quits (main_quit()), but the recursive mainloop isn't getting killed.
I've tried making the dialog emit a RESPONSE_CANCEL signal and I've tried actually grabbing the cancel button in the dialog and making it emit a 'clicked' signal, but neither of these things work.Is there an easy way to interrupt the embedded mainloop or should do I have to abandon my loopy swallowed-dialog design?
Tom
___
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/