Skip to content

Commit

Permalink
Deploy documentation of '20240715-update-sphinx-2022' to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mprinkezs committed Jul 15, 2024
1 parent 2785a3e commit 62c2daf
Show file tree
Hide file tree
Showing 327 changed files with 24,956 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 20240715-update-sphinx-2022/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 5f9a1581191270a8e911c0173903396b
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# -*- coding: utf-8 -*-

import gom

DIALOG4=gom.script.sys.create_user_defined_dialog (dialog={
"content": [
[
{
"columns": 1,
"name": "label_6",
"rows": 1,
"text": {
"id": "",
"text": "New",
"translatable": True
},
"tooltip": {
"id": "",
"text": "",
"translatable": True
},
"type": "label",
"word_wrap": False
},
{
"columns": 1,
"fast_filter": False,
"name": "input_new",
"rows": 1,
"supplier": "custom",
"tooltip": {
"id": "",
"text": "",
"translatable": True
},
"type": "input::point3d"
}
]
],
"control": {
"id": "OkCancel"
},
"embedding": "",
"position": "",
"size": {
"height": 112,
"width": 200
},
"sizemode": "",
"style": "",
"title": {
"id": "",
"text": "Demo \"New selection element\"",
"translatable": True
}
})

def dialog_event_handler (widget):
pass

# filter system planes
def element_filter( element ):
try:
if element.type == 'plane':
return True
except Exception as e:
pass
return False

DIALOG4.handler = dialog_event_handler
DIALOG4.input_new.filter = element_filter

RESULT=gom.script.sys.show_user_defined_dialog (dialog=DIALOG4)

print("Chosen system plane:", RESULT.input_new.name)


Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# -*- coding: utf-8 -*-

import gom

DIALOG=gom.script.sys.create_user_defined_dialog (dialog={
"content": [
[
{
"columns": 2,
"name": "label",
"rows": 1,
"text": {
"id": "",
"text": "Choose a button. Any button.",
"translatable": True
},
"tooltip": {
"id": "",
"text": "",
"translatable": True
},
"type": "label",
"word_wrap": False
},
{
}
],
[
{
"button_type": "push",
"columns": 1,
"icon": "AAAAAA==",
"icon_file_name": "",
"icon_size": {
"value": "icon"
},
"icon_system_size": {
"value": "default"
},
"icon_system_type": {
"value": "ok"
},
"icon_type": {
"value": "none"
},
"name": "button_yes",
"rows": 1,
"text": {
"id": "",
"text": "Yes",
"translatable": True
},
"tooltip": {
"id": "",
"text": "",
"translatable": True
},
"type": "button::pushbutton"
},
{
"button_type": "push",
"columns": 1,
"icon": "AAAAAA==",
"icon_file_name": "",
"icon_size": {
"value": "icon"
},
"icon_system_size": {
"value": "default"
},
"icon_system_type": {
"value": "ok"
},
"icon_type": {
"value": "none"
},
"name": "button_no",
"rows": 1,
"text": {
"id": "",
"text": "No",
"translatable": True
},
"tooltip": {
"id": "",
"text": "",
"translatable": True
},
"type": "button::pushbutton"
}
]
],
"control": {
"id": "Empty"
},
"embedding": "",
"position": "",
"size": {
"height": 121,
"width": 230
},
"sizemode": "",
"style": "",
"title": {
"id": "",
"text": "Push a button",
"translatable": True
}
})

#
# Event handler function called if anything happens inside of the dialog
#
def dialog_event_handler (widget):
if widget == DIALOG.button_yes:
gom.script.sys.close_user_defined_dialog( dialog = DIALOG, result = 'Yes' )
if widget == DIALOG.button_no:
gom.script.sys.close_user_defined_dialog( dialog = DIALOG, result = 'No' )

DIALOG.handler = dialog_event_handler

try:
RESULT=gom.script.sys.show_user_defined_dialog (dialog=DIALOG)
except gom.BreakError as e:
RESULT = 'Cheater'

print('RESULT', RESULT)

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 62c2daf

Please sign in to comment.