def __init__(self, network, id, core): Window.__init__(self, network, id, core) self.nick_label = widgets.NickEditor(self, core) self.focus = self.input.grab_focus self.connect("key-press-event", self.transfer_text) botbox = Gtk.HBox() botbox.add(self.input) botbox.pack_end(self.nick_label, False, True, 0) self.pack_end(botbox, False, True, 0) topbox = Gtk.ScrolledWindow() topbox.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) topbox.add(self.output) self.pack_end(topbox, True, True, 0) self.show_all()
def __init__(self, network, id, core): Window.__init__(self, network, id, core) self.nick_label = widgets.NickEditor(self, core) self.focus = self.input.grab_focus self.connect("key-press-event", self.transfer_text) self.manager = core.manager botbox = Gtk.HBox() botbox.add(self.input) botbox.pack_end(self.nick_label, False, True, 0) self.pack_end(botbox, False, True, 0) topbox = Gtk.ScrolledWindow() topbox.set_vexpand(True) topbox.add(self.output) self.pack_end(topbox, True, True, 0) self.show_all()
def __init__(self, network, id, core): Window.__init__(self, network, id, core) self.nick_label = widgets.NickEditor(self, core) self.focus = self.input.grab_focus self.connect("key-press-event", self.transfer_text) botbox = gtk.HBox() botbox.pack_start(self.input) botbox.pack_end(self.nick_label, expand=False) self.pack_end(botbox, expand=False) topbox = gtk.ScrolledWindow() topbox.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) topbox.add(self.output) self.pack_end(topbox) self.show_all()
def __init__(self, network, id, core): Window.__init__(self, network, id, core) print "** DEBUG :: NEW Channel Window: ", network, ", ", id, ", ", core self.nicklist = widgets.Nicklist(self, core) self.nick_label = widgets.NickEditor(self, core) self.focus = self.input.grab_focus self.connect("key-press-event", self.transfer_text) topbox = gtk.ScrolledWindow() topbox.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) topbox.add(self.output) nlbox = gtk.ScrolledWindow() nlbox.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC) nlbox.add(self.nicklist) nlbox.set_size_request(conf.get("ui-gtk/nicklist-width", 112), -1) botbox = gtk.HBox() botbox.pack_start(self.input) botbox.pack_end(self.nick_label, expand=False) self.pack_end(botbox, expand=False) pane = gtk.HPaned() pane.pack1(topbox, resize=True, shrink=False) pane.pack2(nlbox, resize=False, shrink=True) self.nicklist.pos = None pane.connect("button-press-event", move_nicklist) pane.connect("button-release-event", drop_nicklist) self.pack_end(pane) self.show_all()