Exemplo n.º 1
0
 def __init__(self):
     super().__init__()
     self._show_title = utils.get_descendant(self, 'showtitle_label', 0)
     self._message = utils.get_descendant(self, 'message_textview', 0)
     self._remaining = utils.get_descendant(self, 'remaining_label', 0)
     self._remaining_stack = utils.get_descendant(self, 'remaining_stack',
                                                  0)
Exemplo n.º 2
0
    def __init__(self, title, subtitle, icon_path):
        super().__init__()
        self._title = utils.get_descendant(self, 'title_label', 0)
        self._subtitle = utils.get_descendant(self, 'subtitle_label', 0)
        self._icon = utils.get_descendant(self, 'icon_image', 0)

        self._title.set_text(title)
        self._subtitle.set_text(subtitle)
Exemplo n.º 3
0
    def __init__(self, message, sender, timesamp):
        super().__init__()
        self._message = utils.get_descendant(self, 'inbox_message_textview', 0)
        self._sender = utils.get_descendant(self, 'sender_label', 0)
        self._timestamp = utils.get_descendant(self, 'timestamp_label', 0)

        self._message.get_buffer().set_text(message)
        self._sender.set_text(sender)
        self._timestamp.set_text(timesamp)
Exemplo n.º 4
0
    def _setup_current_show(self, shows_stack):
        show_option = shows_stack.get_visible_child()
        show_option_name = shows_stack.get_visible_child_name()

        if show_option_name == 'Existing':
            existing_shows = utils.get_descendant(shows_stack, 'existing_shows_view', 0)
            self.current_show = self.user_shows[utils.get_row_idx_from_listbox(existing_shows)]
        elif show_option_name == 'Special':
            special_title = utils.get_descendant(shows_stack, 'special_title', 0).get_text()
            special_nickname = utils.get_descendant(shows_stack, 'special_nickname', 0).get_text()

            self.current_show = Show(special_title, [self.current_user], special_nickname, '', [], '')
        else:
            assert False
Exemplo n.º 5
0
    def __init__(self):
        super().__init__()
        self._message = utils.get_descendant(self, 'message_textview', 0)

        self._pagination_info = utils.get_descendant(self, 'pagination_info',
                                                     0)
        self._goto_first_button = utils.get_descendant(self,
                                                       'goto_first_button', 0)
        self._goto_previous_button = utils.get_descendant(
            self, 'goto_previous_button', 0)
        self._goto_next_button = utils.get_descendant(self, 'goto_next_button',
                                                      0)
        self._goto_last_button = utils.get_descendant(self, 'goto_last_button',
                                                      0)

        self._inbox_messages_view = utils.get_descendant(
            self, 'inbox_messages_view', 0)
        self._source_selection_vbox = utils.get_descendant(
            self, 'source_selection_vbox', 0)
        #self._players_metadata_view = utils.get_descendant(self, 'players_metadata_view', 0)
        #self._manual_metadata_view = utils.get_descendant(self, 'manual_metadata_view', 0)
        self._players_combo_box = utils.get_descendant(self,
                                                       'players_combo_box', 0)
Exemplo n.º 6
0
 def __init__(self):
     super().__init__()
     self._message = utils.get_descendant(self, 'message_textview', 0)
     self._shows_stack = utils.get_descendant(self, 'shows_stack', 0)
     self._existing_shows_view = utils.get_descendant(
         self, 'existing_shows_view', 0)