Exemplo n.º 1
0
 def _refresh_ddlf_lift(self):
     if self._ddlf._lift:
         functions.remove_element(self._ddlf._lift)
     if self._ddlf.get_family_rect().height > self._ddlf.get_fus_rect(
     ).height:
         self._ddlf.add_lift()
     functions.refresh_current_menu()
Exemplo n.º 2
0
 def refresh_lift(self):
     """Refresh current lift. Removes lift if not needed. Add lift if needed.
     """
     if self._lift:
         functions.remove_element(self._lift)
     if self.get_family_rect().height > self.get_fus_rect().height:
         self.add_lift()
     functions.refresh_current_menu()
Exemplo n.º 3
0
 def refresh_lift(self):
     """Refresh current lift. Removes lift if not needed. Add lift if needed.
     """
     if self._lift:
         functions.remove_element(self._lift)
         self._lift = None  #temporary. Does it really work?
     if self.get_family_rect().height > self.get_fus_rect().height:
         self.add_lift()
     functions.refresh_current_menu()
Exemplo n.º 4
0
 def _go_to_dir(self, selected):
     self._path_element._path = selected
     self._path_element._path_list = self._path_element._get_strs()
     ycoord = self._path_element._elements[0].get_storer_rect().centery
     self._path_element._set_path_elements(ycoord)
     functions.refresh_current_menu()
     self._refresh_ddlf()
     self.unblit()
     self.blit()
     self.update()
 def _go_to_dir(self, selected):
     self._path_element._path = selected
     self._path_element._path_list = self._path_element._get_strs()
     ycoord = self._path_element._elements[0].get_storer_rect().centery
     self._path_element._set_path_elements(ycoord)
     functions.refresh_current_menu()
     self._refresh_ddlf()
     self.unblit()
     self.blit()
     self.update()
Exemplo n.º 6
0
 def _reaction_path(self, n):
     if n != self._n:
         self._path_list = self._path_list[0:n+1]
         self._path = "".join(self._path_list)
         ycoord = self._elements[0].get_storer_rect().centery
         self._set_path_elements(ycoord)
         functions.refresh_current_menu()
         self.father._refresh_ddlf()
         self.father.unblit()
         self.father.blit()
         self.father.update()
Exemplo n.º 7
0
 def _reaction_path(self, n):
     if n != self._n:
         self._path_list = self._path_list[0:n+1]
         self._path = "".join(self._path_list)
         ycoord = self._elements[0].get_storer_rect().centery
         self._set_path_elements(ycoord)
         functions.refresh_current_menu()
         self.father._refresh_ddlf()
         self.father.unblit()
         self.father.blit()
         self.father.update()
Exemplo n.º 8
0
 def _refresh_ddlf_lift(self):
     if self._ddlf._lift:
         functions.remove_element(self._ddlf._lift)
     if self._ddlf.get_family_rect().height > self._ddlf.get_fus_rect().height:
         self._ddlf.add_lift()
     functions.refresh_current_menu()