You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

644 lines
20 KiB

  1. {
  2. "language": "chinese",
  3. "target": "\"C:\\Users\\Chris\\Dropbox\\pretty_gui\\Gooey\\venv3\\Scripts\\python.exe\" -u \"C:/Users/Chris/Dropbox/pretty_gui/Gooey/gooey/tests/integration/programs/all_widgets.py\"",
  4. "program_name": "all_widgets",
  5. "program_description": "Example application to show Gooey's various widgets",
  6. "sidebar_title": "Your Custom Title",
  7. "default_size": [
  8. 610,
  9. 530
  10. ],
  11. "auto_start": false,
  12. "show_advanced": true,
  13. "run_validators": true,
  14. "encoding": "utf-8",
  15. "show_stop_warning": true,
  16. "show_success_modal": false,
  17. "force_stop_is_error": false,
  18. "poll_external_updates": false,
  19. "return_to_config": false,
  20. "show_restart_button": true,
  21. "requires_shell": true,
  22. "menu": [],
  23. "clear_before_run": false,
  24. "use_legacy_titles": true,
  25. "num_required_cols": 2,
  26. "num_optional_cols": 2,
  27. "manual_start": false,
  28. "monospace_display": false,
  29. "image_dir": "::gooey/default",
  30. "language_dir": "C:\\Users\\Chris\\Dropbox\\pretty_gui\\Gooey\\gooey\\languages",
  31. "progress_regex": null,
  32. "progress_expr": null,
  33. "hide_progress_msg": false,
  34. "disable_progress_bar_animation": false,
  35. "disable_stop_button": false,
  36. "navigation": "SIDEBAR",
  37. "show_sidebar": true,
  38. "tabbed_groups": false,
  39. "group_by_type": true,
  40. "body_bg_color": "#f0f0f0",
  41. "header_bg_color": "#ffffff",
  42. "header_height": 80,
  43. "header_show_title": true,
  44. "header_show_subtitle": true,
  45. "header_image_center": false,
  46. "footer_bg_color": "#f0f0f0",
  47. "sidebar_bg_color": "#f2f2f2",
  48. "terminal_panel_color": "#F0F0F0",
  49. "terminal_font_color": "#000000",
  50. "terminal_font_family": null,
  51. "terminal_font_weight": null,
  52. "terminal_font_size": null,
  53. "richtext_controls": false,
  54. "error_color": "#ea7878",
  55. "layout": "standard",
  56. "widgets": {
  57. "all_widgets.py": {
  58. "command": "::gooey/default",
  59. "name": "all_widgets.py",
  60. "help": null,
  61. "description": "",
  62. "contents": [
  63. {
  64. "name": "Optional Arguments",
  65. "items": [
  66. {
  67. "id": "--textfield",
  68. "type": "TextField",
  69. "cli_type": "optional",
  70. "required": false,
  71. "data": {
  72. "display_name": "textfield",
  73. "help": null,
  74. "required": false,
  75. "nargs": "",
  76. "commands": [
  77. "--textfield"
  78. ],
  79. "choices": [],
  80. "default": 2,
  81. "dest": "textfield"
  82. },
  83. "options": {
  84. "error_color": "#ea7878",
  85. "label_color": "#000000",
  86. "help_color": "#363636",
  87. "full_width": false,
  88. "validator": {
  89. "test": "True",
  90. "message": ""
  91. },
  92. "external_validator": {
  93. "cmd": ""
  94. }
  95. }
  96. },
  97. {
  98. "id": "--textarea",
  99. "type": "Textarea",
  100. "cli_type": "optional",
  101. "required": false,
  102. "data": {
  103. "display_name": "textarea",
  104. "help": null,
  105. "required": false,
  106. "nargs": "",
  107. "commands": [
  108. "--textarea"
  109. ],
  110. "choices": [],
  111. "default": "oneline twoline",
  112. "dest": "textarea"
  113. },
  114. "options": {
  115. "error_color": "#ea7878",
  116. "label_color": "#000000",
  117. "help_color": "#363636",
  118. "full_width": false,
  119. "validator": {
  120. "test": "True",
  121. "message": ""
  122. },
  123. "external_validator": {
  124. "cmd": ""
  125. }
  126. }
  127. },
  128. {
  129. "id": "--password",
  130. "type": "PasswordField",
  131. "cli_type": "optional",
  132. "required": false,
  133. "data": {
  134. "display_name": "password",
  135. "help": null,
  136. "required": false,
  137. "nargs": "",
  138. "commands": [
  139. "--password"
  140. ],
  141. "choices": [],
  142. "default": "hunter42",
  143. "dest": "password"
  144. },
  145. "options": {
  146. "error_color": "#ea7878",
  147. "label_color": "#000000",
  148. "help_color": "#363636",
  149. "full_width": false,
  150. "validator": {
  151. "test": "True",
  152. "message": ""
  153. },
  154. "external_validator": {
  155. "cmd": ""
  156. }
  157. }
  158. },
  159. {
  160. "id": "--commandfield",
  161. "type": "CommandField",
  162. "cli_type": "optional",
  163. "required": false,
  164. "data": {
  165. "display_name": "commandfield",
  166. "help": null,
  167. "required": false,
  168. "nargs": "",
  169. "commands": [
  170. "--commandfield"
  171. ],
  172. "choices": [],
  173. "default": "cmdr",
  174. "dest": "commandfield"
  175. },
  176. "options": {
  177. "error_color": "#ea7878",
  178. "label_color": "#000000",
  179. "help_color": "#363636",
  180. "full_width": false,
  181. "validator": {
  182. "test": "True",
  183. "message": ""
  184. },
  185. "external_validator": {
  186. "cmd": ""
  187. }
  188. }
  189. },
  190. {
  191. "id": "--dropdown",
  192. "type": "Dropdown",
  193. "cli_type": "optional",
  194. "required": false,
  195. "data": {
  196. "display_name": "dropdown",
  197. "help": null,
  198. "required": false,
  199. "nargs": "",
  200. "commands": [
  201. "--dropdown"
  202. ],
  203. "choices": [
  204. "one",
  205. "two"
  206. ],
  207. "default": "two",
  208. "dest": "dropdown"
  209. },
  210. "options": {
  211. "error_color": "#ea7878",
  212. "label_color": "#000000",
  213. "help_color": "#363636",
  214. "full_width": false,
  215. "validator": {
  216. "test": "True",
  217. "message": ""
  218. },
  219. "external_validator": {
  220. "cmd": ""
  221. }
  222. }
  223. },
  224. {
  225. "id": "--listboxie",
  226. "type": "Listbox",
  227. "cli_type": "optional",
  228. "required": false,
  229. "data": {
  230. "display_name": "listboxie",
  231. "help": null,
  232. "required": false,
  233. "nargs": "+",
  234. "commands": [
  235. "--listboxie"
  236. ],
  237. "choices": [
  238. "Option one",
  239. "Option two",
  240. "Option three",
  241. "Option four"
  242. ],
  243. "default": [
  244. "Option three",
  245. "Option four"
  246. ],
  247. "dest": "listboxie"
  248. },
  249. "options": {
  250. "error_color": "#ea7878",
  251. "label_color": "#000000",
  252. "help_color": "#363636",
  253. "full_width": false,
  254. "validator": {
  255. "test": "True",
  256. "message": ""
  257. },
  258. "external_validator": {
  259. "cmd": ""
  260. },
  261. "height": 300,
  262. "validate": "",
  263. "heading_color": "",
  264. "text_color": "",
  265. "hide_heading": true,
  266. "hide_text": true
  267. }
  268. },
  269. {
  270. "id": "-c",
  271. "type": "Counter",
  272. "cli_type": "optional",
  273. "required": false,
  274. "data": {
  275. "display_name": "counter",
  276. "help": null,
  277. "required": false,
  278. "nargs": "",
  279. "commands": [
  280. "-c",
  281. "--counter"
  282. ],
  283. "choices": [
  284. "1",
  285. "2",
  286. "3",
  287. "4",
  288. "5",
  289. "6",
  290. "7",
  291. "8",
  292. "9",
  293. "10"
  294. ],
  295. "default": "3",
  296. "dest": "counter"
  297. },
  298. "options": {
  299. "error_color": "#ea7878",
  300. "label_color": "#000000",
  301. "help_color": "#363636",
  302. "full_width": false,
  303. "validator": {
  304. "test": "True",
  305. "message": ""
  306. },
  307. "external_validator": {
  308. "cmd": ""
  309. }
  310. }
  311. },
  312. {
  313. "id": "-o",
  314. "type": "CheckBox",
  315. "cli_type": "optional",
  316. "required": false,
  317. "data": {
  318. "display_name": "overwrite",
  319. "help": null,
  320. "required": false,
  321. "nargs": "",
  322. "commands": [
  323. "-o",
  324. "--overwrite"
  325. ],
  326. "choices": [],
  327. "default": true,
  328. "dest": "overwrite"
  329. },
  330. "options": {
  331. "error_color": "#ea7878",
  332. "label_color": "#000000",
  333. "help_color": "#363636",
  334. "full_width": false,
  335. "validator": {
  336. "test": "True",
  337. "message": ""
  338. },
  339. "external_validator": {
  340. "cmd": ""
  341. }
  342. }
  343. },
  344. {
  345. "id": "-bo",
  346. "type": "BlockCheckbox",
  347. "cli_type": "optional",
  348. "required": false,
  349. "data": {
  350. "display_name": "blockcheckbox",
  351. "help": null,
  352. "required": false,
  353. "nargs": "",
  354. "commands": [
  355. "-bo",
  356. "--blockcheckbox"
  357. ],
  358. "choices": [],
  359. "default": true,
  360. "dest": "blockcheckbox"
  361. },
  362. "options": {
  363. "error_color": "#ea7878",
  364. "label_color": "#000000",
  365. "help_color": "#363636",
  366. "full_width": false,
  367. "validator": {
  368. "test": "True",
  369. "message": ""
  370. },
  371. "external_validator": {
  372. "cmd": ""
  373. }
  374. }
  375. },
  376. {
  377. "id": "94c2fd11-1925-4cc8-8634-44ef0ce07986",
  378. "type": "RadioGroup",
  379. "cli_type": "optional",
  380. "group_name": "Choose Option",
  381. "required": true,
  382. "options": {
  383. "error_color": "#ea7878",
  384. "label_color": "#000000",
  385. "help_color": "#363636",
  386. "full_width": false,
  387. "validator": {
  388. "type": "local",
  389. "test": "lambda x: True",
  390. "message": ""
  391. },
  392. "external_validator": {
  393. "cmd": ""
  394. },
  395. "initial_selection": 1
  396. },
  397. "data": {
  398. "commands": [
  399. [
  400. "--mutexone"
  401. ],
  402. [
  403. "--mutextwo"
  404. ]
  405. ],
  406. "widgets": [
  407. {
  408. "id": "--mutexone",
  409. "type": "CheckBox",
  410. "cli_type": "optional",
  411. "required": false,
  412. "data": {
  413. "display_name": "mutexone",
  414. "help": "Show more details",
  415. "required": false,
  416. "nargs": "",
  417. "commands": [
  418. "--mutexone"
  419. ],
  420. "choices": [],
  421. "default": true,
  422. "dest": "mutexone"
  423. },
  424. "options": {
  425. "error_color": "#ea7878",
  426. "label_color": "#000000",
  427. "help_color": "#363636",
  428. "full_width": false,
  429. "validator": {
  430. "test": "True",
  431. "message": ""
  432. },
  433. "external_validator": {
  434. "cmd": ""
  435. }
  436. }
  437. },
  438. {
  439. "id": "--mutextwo",
  440. "type": "TextField",
  441. "cli_type": "optional",
  442. "required": false,
  443. "data": {
  444. "display_name": "mutextwo",
  445. "help": null,
  446. "required": false,
  447. "nargs": "",
  448. "commands": [
  449. "--mutextwo"
  450. ],
  451. "choices": [],
  452. "default": "mut-2",
  453. "dest": "mutextwo"
  454. },
  455. "options": {
  456. "error_color": "#ea7878",
  457. "label_color": "#000000",
  458. "help_color": "#363636",
  459. "full_width": false,
  460. "validator": {
  461. "test": "True",
  462. "message": ""
  463. },
  464. "external_validator": {
  465. "cmd": ""
  466. }
  467. }
  468. }
  469. ]
  470. }
  471. },
  472. {
  473. "id": "--filechooser",
  474. "type": "FileChooser",
  475. "cli_type": "optional",
  476. "required": false,
  477. "data": {
  478. "display_name": "filechooser",
  479. "help": null,
  480. "required": false,
  481. "nargs": "",
  482. "commands": [
  483. "--filechooser"
  484. ],
  485. "choices": [],
  486. "default": "fc-value",
  487. "dest": "filechooser"
  488. },
  489. "options": {
  490. "error_color": "#ea7878",
  491. "label_color": "#000000",
  492. "help_color": "#363636",
  493. "full_width": false,
  494. "validator": {
  495. "test": "True",
  496. "message": ""
  497. },
  498. "external_validator": {
  499. "cmd": ""
  500. }
  501. }
  502. },
  503. {
  504. "id": "--filesaver",
  505. "type": "FileSaver",
  506. "cli_type": "optional",
  507. "required": false,
  508. "data": {
  509. "display_name": "filesaver",
  510. "help": null,
  511. "required": false,
  512. "nargs": "",
  513. "commands": [
  514. "--filesaver"
  515. ],
  516. "choices": [],
  517. "default": "fs-value",
  518. "dest": "filesaver"
  519. },
  520. "options": {
  521. "error_color": "#ea7878",
  522. "label_color": "#000000",
  523. "help_color": "#363636",
  524. "full_width": false,
  525. "validator": {
  526. "test": "True",
  527. "message": ""
  528. },
  529. "external_validator": {
  530. "cmd": ""
  531. }
  532. }
  533. },
  534. {
  535. "id": "--dirchooser",
  536. "type": "DirChooser",
  537. "cli_type": "optional",
  538. "required": false,
  539. "data": {
  540. "display_name": "dirchooser",
  541. "help": null,
  542. "required": false,
  543. "nargs": "",
  544. "commands": [
  545. "--dirchooser"
  546. ],
  547. "choices": [],
  548. "default": "dc-value",
  549. "dest": "dirchooser"
  550. },
  551. "options": {
  552. "error_color": "#ea7878",
  553. "label_color": "#000000",
  554. "help_color": "#363636",
  555. "full_width": false,
  556. "validator": {
  557. "test": "True",
  558. "message": ""
  559. },
  560. "external_validator": {
  561. "cmd": ""
  562. }
  563. }
  564. },
  565. {
  566. "id": "--datechooser",
  567. "type": "DateChooser",
  568. "cli_type": "optional",
  569. "required": false,
  570. "data": {
  571. "display_name": "datechooser",
  572. "help": null,
  573. "required": false,
  574. "nargs": "",
  575. "commands": [
  576. "--datechooser"
  577. ],
  578. "choices": [],
  579. "default": "2015-01-01",
  580. "dest": "datechooser"
  581. },
  582. "options": {
  583. "error_color": "#ea7878",
  584. "label_color": "#000000",
  585. "help_color": "#363636",
  586. "full_width": false,
  587. "validator": {
  588. "test": "True",
  589. "message": ""
  590. },
  591. "external_validator": {
  592. "cmd": ""
  593. }
  594. }
  595. },
  596. {
  597. "id": "--multidirchooser",
  598. "type": "MultiDirChooser",
  599. "cli_type": "optional",
  600. "required": false,
  601. "data": {
  602. "display_name": "multidirchooser",
  603. "help": null,
  604. "required": false,
  605. "nargs": "",
  606. "commands": [
  607. "--multidirchooser"
  608. ],
  609. "choices": [],
  610. "default": "2015-01-01",
  611. "dest": "multidirchooser"
  612. },
  613. "options": {
  614. "error_color": "#ea7878",
  615. "label_color": "#000000",
  616. "help_color": "#363636",
  617. "full_width": false,
  618. "validator": {
  619. "test": "True",
  620. "message": ""
  621. },
  622. "external_validator": {
  623. "cmd": ""
  624. }
  625. }
  626. }
  627. ],
  628. "groups": [],
  629. "description": null,
  630. "options": {
  631. "label_color": "#000000",
  632. "description_color": "#363636",
  633. "legacy": {
  634. "required_cols": 2,
  635. "optional_cols": 2
  636. },
  637. "columns": 2,
  638. "padding": 10,
  639. "show_border": false
  640. }
  641. }
  642. ]
  643. }
  644. }
  645. }