More work on the window management refactor

This commit is contained in:
Marco Pesenti Gritti
2006-07-09 17:37:54 +02:00
parent d4cb9a2714
commit 1cc14e406a
17 changed files with 214 additions and 5774 deletions
-18
View File
@@ -1,18 +0,0 @@
import pygtk
pygtk.require('2.0')
import gtk
from sugar.chat.Chat import Chat
class ChatWindow(gtk.Window):
def __init__(self):
gtk.Window.__init__(self)
self._chat = None
def set_chat(self, chat):
if self._chat != None:
self.remove(self._chat)
self._chat = chat
self.add(self._chat)
self._chat.show()