Start dialog

This commit is contained in:
Mauricio Baeza 2021-07-12 21:52:54 -05:00
parent e972238342
commit e43b1fb1c9
5 changed files with 30 additions and 2 deletions

Binary file not shown.

View File

@ -1,6 +1,7 @@
import uno
import unohelper
from com.sun.star.task import XJobExecutor
from main import main
ID_EXTENSION = 'net.elmau.zaz.extensions'
@ -12,8 +13,8 @@ class ZAZExtensions(unohelper.Base, XJobExecutor):
def __init__(self, ctx):
self.ctx = ctx
def trigger(self, args='pyUNO'):
print('Hello World', args)
def trigger(self, args):
main(args)
return

View File

@ -0,0 +1,2 @@
#!/usr/bin/env python3

11
source/pythonpath/main.py Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env python3
from ui import dialog_main
def main(args):
dialog = dialog_main()
dialog.open()
return

14
source/pythonpath/ui.py Normal file
View File

@ -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