def drawFocusNormal(self):
     '''Draw focus normal status.'''
     # Remove child first.
     utils.containerRemoveAll(self.starBox)
     # utils.containerRemoveAll(self.voteBox)
     
     # Add application vote star.
     starBox = createStarBox(self.starLevel, self.starSize)
     self.starBox.pack_start(starBox)
     
     starBox.connect("button-press-event", lambda w, e: self.switchFocusStatus(self.FOCUS_STAR))
     
     utils.setHelpTooltip(starBox, __("Click Start Vote"))
     setClickableCursor(starBox)
 def drawFocusStar(self):
     '''Draw focus star status.'''
     # Remove child first.
     utils.containerRemoveAll(self.starBox)
     
     # Add application vote star.
     self.starView = StarView()
     self.starBox.pack_start(self.starView.eventbox)
     self.starView.eventbox.connect("button-press-event", lambda w, e: self.sendVote())
     self.starView.eventbox.connect("button-press-event", lambda w, e: self.switchFocusStatus(self.FOCUS_NORMAL))
     
     # Show help.
     utils.setHelpTooltip(self.starView.eventbox, __("Click Finish Vote"))
     setClickableCursor(self.starView.eventbox)
    def drawFocusNormal(self):
        '''Draw focus normal status.'''
        # Remove child first.
        utils.containerRemoveAll(self.starBox)
        # utils.containerRemoveAll(self.voteBox)

        # Add application vote star.
        starBox = createStarBox(self.starLevel, self.starSize)
        self.starBox.pack_start(starBox)

        starBox.connect("button-press-event",
                        lambda w, e: self.switchFocusStatus(self.FOCUS_STAR))

        utils.setHelpTooltip(starBox, __("Click Start Vote"))
        setClickableCursor(starBox)
    def drawFocusStar(self):
        '''Draw focus star status.'''
        # Remove child first.
        utils.containerRemoveAll(self.starBox)

        # Add application vote star.
        self.starView = StarView()
        self.starBox.pack_start(self.starView.eventbox)
        self.starView.eventbox.connect("button-press-event",
                                       lambda w, e: self.sendVote())
        self.starView.eventbox.connect(
            "button-press-event",
            lambda w, e: self.switchFocusStatus(self.FOCUS_NORMAL))

        # Show help.
        utils.setHelpTooltip(self.starView.eventbox, __("Click Finish Vote"))
        setClickableCursor(self.starView.eventbox)