<div>Que no el systray depende del window manager?<br></div><div>En fin, existe esto:</div><div><a href="http://tk-happy.sourceforge.net/">http://tk-happy.sourceforge.net/</a></div><br><div class="gmail_quote">On Fri, Jun 8, 2012 at 5:35 PM, mauricio rodriguez <span dir="ltr"><<a href="mailto:rodriguez.mauricio55@gmail.com" target="_blank">rodriguez.mauricio55@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hola a tod@s</div><div><br></div>Eso estoy en pleno proceso de codificación de un proyecto y me entero que tkinter no dispone de<div>
una función para minimizar la app en la bandeja del sistema ( systray) Grrrrrrrrrrrrr</div>
<div><br></div><div>Re-factorizar mmm no, alguien conoce algún hack para hacer esto......</div><div><br></div><div><br></div><div>Buscando llegue a esto pero no entiendo ni J XDD</div><div><a href="http://standards.freedesktop.org/systemtray-spec/systemtray-spec-latest.html" target="_blank">http://standards.freedesktop.org/systemtray-spec/systemtray-spec-latest.html</a></div>
<div><a href="http://wiki.tcl.tk/4090" target="_blank">http://wiki.tcl.tk/4090</a></div><div><br></div><div>lo que preciso es algo similar a esto pero en tkinter</div><div><br></div><div><div><br></div><div><b>import pygtk</b></div>
<div>
<b>pygtk.require('2.0')</b></div><div><b>import gtk</b></div><div><b>class HelloTray:</b></div><div><b> def __init__(self):</b></div><div><b> self.statusIcon = gtk.StatusIcon()</b></div><div><b> self.statusIcon.set_from_stock(gtk.STOCK_ABOUT)</b></div>
<div><b> self.statusIcon.set_visible(True)</b></div><div><b> self.statusIcon.set_tooltip("Hello World")</b></div><div><b> self.menu = gtk.Menu()</b></div><div><b> self.menuItem = gtk.ImageMenuItem(gtk.STOCK_EXECUTE)</b></div>
<div><b> self.menuItem.connect('activate', self.execute_cb, self.statusIcon)</b></div><div><b> self.menu.append(self.menuItem)</b></div><div><b> self.menuItem = gtk.ImageMenuItem(gtk.STOCK_QUIT)</b></div>
<div><b> self.menuItem.connect('activate', self.quit_cb, self.statusIcon)</b></div><div><b> self.menu.append(self.menuItem)</b></div><div><b> self.statusIcon.connect('popup-menu', self.popup_menu_cb, self.menu)</b></div>
<div><b> self.statusIcon.set_visible(1)</b></div><div><b><br></b></div><div><b> gtk.main()</b></div><div><b><br></b></div><div><b> def execute_cb(self, widget, event, data = None):</b></div><div><b> window = gtk.Window(gtk.WINDOW_TOPLEVEL)</b></div>
<div><b> window.set_border_width(10)</b></div><div><b> button = gtk.Button("Hello World")</b></div><div><b> button.connect_object("clicked", gtk.Widget.destroy, window)</b></div><div><b> window.add(button)</b></div>
<div><b> button.show()</b></div><div><b> window.show()</b></div><div><b><br></b></div><div><b> def quit_cb(self, widget, data = None):</b></div><div><b> gtk.main_quit()</b></div><div><b><br></b></div><div><b> def popup_menu_cb(self, widget, button, time, data = None):</b></div>
<div><b> if button == 3:</b></div><div><b> if data:</b></div><div><b> data.show_all()</b></div><div><b> data.popup(None, None, gtk.status_icon_position_menu,</b></div><div><b> 3, time, self.statusIcon)</b></div>
<div><b><br></b></div><div><b>if __name__ == "__main__":</b></div><div><b> helloWord = HelloTray()</b></div></div><div><b><br></b></div><div><b><br></b></div><div>Se agradece .....</div>
<br>_______________________________________________<br>
Python-es mailing list<br>
<a href="mailto:Python-es@python.org">Python-es@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-es" target="_blank">http://mail.python.org/mailman/listinfo/python-es</a><br>
FAQ: <a href="http://python-es-faq.wikidot.com/" target="_blank">http://python-es-faq.wikidot.com/</a><br>
<br></blockquote></div><br>