Start dialog
This commit is contained in:
parent
e972238342
commit
e43b1fb1c9
Binary file not shown.
|
@ -1,6 +1,7 @@
|
||||||
import uno
|
import uno
|
||||||
import unohelper
|
import unohelper
|
||||||
from com.sun.star.task import XJobExecutor
|
from com.sun.star.task import XJobExecutor
|
||||||
|
from main import main
|
||||||
|
|
||||||
|
|
||||||
ID_EXTENSION = 'net.elmau.zaz.extensions'
|
ID_EXTENSION = 'net.elmau.zaz.extensions'
|
||||||
|
@ -12,8 +13,8 @@ class ZAZExtensions(unohelper.Base, XJobExecutor):
|
||||||
def __init__(self, ctx):
|
def __init__(self, ctx):
|
||||||
self.ctx = ctx
|
self.ctx = ctx
|
||||||
|
|
||||||
def trigger(self, args='pyUNO'):
|
def trigger(self, args):
|
||||||
print('Hello World', args)
|
main(args)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from ui import dialog_main
|
||||||
|
|
||||||
|
|
||||||
|
def main(args):
|
||||||
|
dialog = dialog_main()
|
||||||
|
dialog.open()
|
||||||
|
return
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import easymacro as app
|
||||||
|
|
||||||
|
|
||||||
|
def dialog_main():
|
||||||
|
args = dict(
|
||||||
|
Name = 'dialog',
|
||||||
|
Width = 200,
|
||||||
|
Height = 200,
|
||||||
|
)
|
||||||
|
dialog = app.create_dialog(args)
|
||||||
|
|
||||||
|
return dialog
|
Loading…
Reference in New Issue