Пример #1
0
    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)))
Пример #2
0
    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)))
Пример #3
0
    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())))
Пример #4
0
    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())))
Пример #5
0
    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())))
Пример #6
0
 def _copy_all(self):
     pyperclip.setcb(", ".join(map(str, self._apex)))
Пример #7
0
 def _copy_selected(self):
     pyperclip.setcb(", ".join(map(self.get, self.curselection())))
Пример #8
0
 def _copy_latex(self):
     pyperclip.setcb(self._group.str_latex())
Пример #9
0
 def _copy_latex(self):
     if self._factorization_enabled:
         cb = self._integer_view.str_latex()
     else:
         cb = self._integer_view.str_normal()
     pyperclip.setcb(cb)
Пример #10
0
 def _copy(self):
     pyperclip.setcb(str(self._integer_view))
Пример #11
0
 def _copy_selected(self):
     pyperclip.setcb(", ".join(map(self.get, self.curselection())))
Пример #12
0
 def _copy_latex(self):
     pyperclip.setcb(self._group.str_latex())
Пример #13
0
 def _copy_latex(self):
     if self._factorization_enabled:
         cb = self._integer.str_latex()
     else:
         cb = self._integer.str_normal()
     pyperclip.setcb(cb)
Пример #14
0
 def _copy(self):
     pyperclip.setcb(str(self._integer))
Пример #15
0
 def _copy_all(self):
     pyperclip.setcb(", ".join(map(str, self._apex)))