def _copy_all_latex(self): def elem_latex(e): if e.mode == StringViewFormatter.NORMAL: return e.str_normal() return e.str_latex() pyperclip.setcb(", ".join(map(elem_latex, self._apex)))
def _copy_selected_latex(self): def elem_latex(index): e = self._apex[index] if e.mode == StringViewFormatter.NORMAL: return e.str_normal() return e.str_latex() pyperclip.setcb(", ".join(map(elem_latex, self.curselection())))
def _copy_selected_latex(self): def elem_latex(index): e = self._apex[index] if e.str_mode == 'normal': return e.str_normal() return e.str_latex() pyperclip.setcb(", ".join(map(elem_latex, self.curselection())))
def _copy_all(self): pyperclip.setcb(", ".join(map(str, self._apex)))
def _copy_selected(self): pyperclip.setcb(", ".join(map(self.get, self.curselection())))
def _copy_latex(self): pyperclip.setcb(self._group.str_latex())
def _copy_latex(self): if self._factorization_enabled: cb = self._integer_view.str_latex() else: cb = self._integer_view.str_normal() pyperclip.setcb(cb)
def _copy(self): pyperclip.setcb(str(self._integer_view))
def _copy_latex(self): if self._factorization_enabled: cb = self._integer.str_latex() else: cb = self._integer.str_normal() pyperclip.setcb(cb)
def _copy(self): pyperclip.setcb(str(self._integer))