Beispiel #1
0
 def go_to_line_number(self):
     ed = self.gui.central.current_editor
     if ed is None or not ed.has_line_numbers:
         return
     num, ok = QInputDialog.getInt(self.gui, _('Enter line number'), ('Line number:'), ed.current_line, 1, max(100000, ed.number_of_lines))
     if ok:
         ed.current_line = num
Beispiel #2
0
 def go_to_line_number(self):
     ed = self.gui.central.current_editor
     if ed is None or not ed.has_line_numbers:
         return
     num, ok = QInputDialog.getInt(self.gui, _('Enter line number'),
                                   ('Line number:'), ed.current_line, 1,
                                   max(100000, ed.number_of_lines))
     if ok:
         ed.current_line = num
Beispiel #3
0
 def blur_image(self):
     val, ok = QInputDialog.getInt(
         self,
         _('Blur image'),
         _('The standard deviation for the Gaussian blur operation (higher means more blurring)'
           ),
         value=3,
         min=1,
         max=20)
     if ok:
         self.canvas.blur_image(sigma=val)
Beispiel #4
0
 def sharpen_image(self):
     val, ok = QInputDialog.getInt(
         self,
         _('Sharpen image'),
         _('The standard deviation for the Gaussian sharpen operation (higher means more sharpening)'
           ),
         value=3,
         min=1,
         max=20)
     if ok:
         self.canvas.sharpen_image(sigma=val)
Beispiel #5
0
 def blur_image(self):
     val, ok = QInputDialog.getInt(
         self,
         _("Blur image"),
         _("The standard deviation for the Gaussian blur operation (higher means more blurring)"),
         value=3,
         min=1,
         max=20,
     )
     if ok:
         self.canvas.blur_image(sigma=val)
Beispiel #6
0
 def sharpen_image(self):
     val, ok = QInputDialog.getInt(
         self,
         _("Sharpen image"),
         _("The standard deviation for the Gaussian sharpen operation (higher means more sharpening)"),
         value=3,
         min=1,
         max=20,
     )
     if ok:
         self.canvas.sharpen_image(sigma=val)