def right_click_listview_row_by_text(self,
                                         locator,
                                         text,
                                         x_offset=0,
                                         y_offset=0):
        """Right clicks a listview row with matching text.

        See `Double Click Listview Row By Text` for details about arguments ``locator`` and ``text``.
        """
        row = self._get_row_by_text(locator, text)
        Clicks.right_click(row, x_offset, y_offset)
    def right_click_listview_row_by_index(self,
                                          locator,
                                          row_index,
                                          x_offset=0,
                                          y_offset=0):
        """Right clicks a listview row at index.

        See `Double Click Listview Row By Index` for details about arguments ``locator`` and ``row_index``.
        """
        row = self._get_row_by_index(locator, row_index)
        Clicks.right_click(row, x_offset, y_offset)
예제 #3
0
    def right_click_item(self, locator, x_offset=0, y_offset=0):
        """Right clicks an item.

        ``locator`` is the locator of the item or object of an item.
        Locator syntax is explained in `Item locators`.

        Optional arguments ``x_offset`` and ``y_offset`` can be used to fine tune
        mouse position relative to the center of the item.
        """
        item = self.state._get_item_by_locator(locator)
        Clicks.right_click(item, x_offset, y_offset)
    def right_click_listview_row(self,
                                 locator,
                                 column_name,
                                 cell_text,
                                 x_offset=0,
                                 y_offset=0):
        """Right clicks a listview row that has given text in given column.

        See `Double Click Listview Row` for details about the arguments ``locator``, ``column_name``, and ``cell_text``.
        """
        row = self._get_row(locator, column_name, cell_text)
        Clicks.right_click(row, x_offset, y_offset)
    def right_click_listview_cell_by_index(self,
                                           locator,
                                           row_index,
                                           column_index,
                                           x_offset=0,
                                           y_offset=0):
        """Right clicks a listview cell at index.

        See `Double Click Listview Cell By Index` for details about arguments ``locator``, ``row_index``, and ``column_index``.
        """
        cell = self._get_cell_by_index(locator, row_index, column_index)
        Clicks.right_click(cell, x_offset, y_offset)
    def right_click_listview_cell(self,
                                  locator,
                                  column_name,
                                  row_index,
                                  x_offset=0,
                                  y_offset=0):
        """Right clicks a listview cell using its column name and row index.

        See `Double Click Listview Cell` for details about arguments ``locator``, ``column_name``, and ``row_index``.
        """
        cell = self._get_cell(locator, column_name, row_index)
        Clicks.right_click(cell, x_offset, y_offset)