def __init__(self, controller, extend=False): BaseGui.__init__(self, controller) gtk.Window.__init__(self) self.extend = extend and extend_mode self.set_title('Turpial') self.set_size_request(280, 350) self.set_default_size(320, 480) self.current_width = 320 self.current_height = 480 self.set_icon(self.load_image('turpial.png', True)) self.set_position(gtk.WIN_POS_CENTER) self.set_gravity(gtk.gdk.GRAVITY_STATIC) self.connect('delete-event', self.__close) self.connect('size-request', self.size_request) self.connect('configure-event', self.move_event) self.connect('key-press-event', self.__on_key_press) self.connect('focus-in-event', self.__on_focus) self.hnd_state = None self.mode = 0 self.vbox = None self.contentbox = gtk.VBox(False) # Valores de config. por defecto self.showed = True self.win_state = 'windowed' self.minimize = 'on' self.workspace = 'single' self.link_color = '#ff6633' self.home_interval = -1 self.replies_interval = -1 self.directs_interval = -1 self.me = None self.version = None self.home_timer = None self.replies_timer = None self.directs_timer = None self.sound = Sound(controller.no_sound) self.notify = Notification(controller.no_notif) self.home = Home(self, self.workspace) self.profile = Profile(self) self.contenido = self.home self.updatebox = UpdateBox(self) self.uploadpic = UploadPicBox(self) self.replybox = ConversationBox(self) self.oauthwin = OAuthWindow(self) if self.extend: log.debug('Cargado modo GTK Extendido') else: log.debug('Cargado modo GTK Simple') self.dock = Dock(self, self.workspace) self.__create_trayicon()
def __init__(self, controller, extend=False): BaseGui.__init__(self, controller) gtk.Window.__init__(self) self.extend = extend and extend_mode self.set_title('Turpial') self.set_size_request(280, 350) self.set_default_size(320, 480) self.current_width = 320 self.current_height = 480 self.set_icon(self.load_image('turpial_icon.png', True)) self.set_position(gtk.WIN_POS_CENTER) self.connect('delete-event', self.__close) self.connect('size-request', self.size_request) self.connect('configure-event', self.move_event) self.connect('mykeypress', self.__on_key_press) self.mode = 0 self.vbox = None self.contentbox = gtk.VBox(False) # Valores de config. por defecto self.showed = True self.minimize = 'on' self.workspace = 'single' self.link_color = 'ff6633' self.home_interval = -1 self.replies_interval = -1 self.directs_interval = -1 self.me = None self.version = None self.home_timer = None self.replies_timer = None self.directs_timer = None self.notify = Notification() self.home = Home(self, self.workspace) self.profile = Profile(self) self.contenido = self.home self.updatebox = UpdateBox(self) self.replybox = ReplyBox(self) if self.extend: log.debug('Cargado modo GTK Extendido') self.browser = OAuthWindow(self) else: log.debug('Cargado modo GTK Simple') self.dock = Dock(self, self.workspace) self.__create_trayicon()
def request_conversation(self, twt_id, user): self.replybox.show(twt_id, user) BaseGui.request_conversation(self, twt_id, user)
def __init__(self, controller, cmdline): BaseGui.__init__(self, controller) self.cmdline = cmdline self.controller = controller