mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
parent
93acec9682
commit
54cd0f1a42
@ -36,7 +36,7 @@ class FortuneWidget(cutter.CutterDockWidget):
|
|||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def generate_fortune(self):
|
def generate_fortune(self):
|
||||||
fortune = cutter.cmd("fo").replace("\n", "")
|
fortune = cutter.cmd("fortune").replace("\n", "")
|
||||||
res = cutter.core().cmdRaw(f"?E {fortune}")
|
res = cutter.core().cmdRaw(f"?E {fortune}")
|
||||||
self.text.setText(res)
|
self.text.setText(res)
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ class FortuneWidget(cutter.CutterDockWidget):
|
|||||||
class CutterSamplePlugin(cutter.CutterPlugin):
|
class CutterSamplePlugin(cutter.CutterPlugin):
|
||||||
name = "Sample Plugin"
|
name = "Sample Plugin"
|
||||||
description = "A sample plugin written in python."
|
description = "A sample plugin written in python."
|
||||||
version = "1.1"
|
version = "1.2"
|
||||||
author = "Cutter developers"
|
author = "Cutter developers"
|
||||||
|
|
||||||
# Override CutterPlugin methods
|
# Override CutterPlugin methods
|
||||||
|
Loading…
Reference in New Issue
Block a user