Skip to content

Commit

Permalink
Deploy documentation of '2022-new-headings-intros' to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mprinkezs committed Oct 11, 2023
1 parent e13d931 commit 1923046
Show file tree
Hide file tree
Showing 318 changed files with 24,486 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 2022-new-headings-intros/.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: a993c5e0d01798df43d8af81ea796674
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 added 2022-new-headings-intros/.doctrees/index.doctree
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,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 1923046

Please sign in to comment.