[Da...] Posted January 30, 2023 Share Posted January 30, 2023 Hallo Zusammen, beim Software-Update ist mir im Skript-Editor aufgefallen, dass man keine Breakpunkte mehr setzen kann. Außerdem funktionieren Skripte mit Dialogen nicht mehr. Habt ihr da ein Formatierungsskript oder wie stellt man sich das vor? Link to comment Share on other sites More sharing options...
[Da...] Posted January 30, 2023 Author Share Posted January 30, 2023 Als kleines Beispiel: # -*- coding: utf-8 -*- import gom import _Additional #print(gom.app.project.get('user_Kommentar')) #print(len(gom.app.project)) #print(gom.app.project('inputSerial.value')) #print(gom.app.project.reports['report'].user_fixture_nr) #print(gom.app.project.get('')) #print(gom.app.project.user_part_nr) i_Messreihen = int(len(gom.app.project.measurement_series)) Liste_Messreihen = _Additional.AuslesenMessreihen(i_Messreihen) for x in Liste_Messreihen: print(x) print(Liste_Messreihen[0]) DIALOG=gom.script.sys.create_user_defined_dialog (dialog={ "content": [ [ { "columns": 1, "data": "AAAAAA==", "file_name": "", "height": 0, "keep_aspect": True, "keep_original_size": True, "name": "image", "rows": 1, "system_image": "system_message_warning", "tooltip": { "id": "", "text": "", "translatable": True }, "type": "image", "use_system_image": True, "width": 0 }, { "columns": 1, "default": "", "items": [ ], "name": "Liste_Messreihen", "rows": 1, "tooltip": { "id": "", "text": "", "translatable": True }, "type": "input::list" } ] ], "control": { "id": "OkCancel" }, "embedding": "always_toplevel", "position": "automatic", "size": { "height": 119, "width": 220 }, "sizemode": "automatic", "style": "", "title": { "id": "", "text": "Message", "translatable": True } }) # # Event handler function called if anything happens inside of the dialog # def dialog_event_handler (widget): pass DIALOG.handler = dialog_event_handler RESULT=gom.script.sys.show_user_defined_dialog (dialog=DIALOG) Link to comment Share on other sites More sharing options...
[Da...] Posted January 30, 2023 Author Share Posted January 30, 2023 hat sich erledigt. danke Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in