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.

510 lines
15 KiB

  1. {
  2. "image_dir": "::gooey/default",
  3. "progress_regex": null,
  4. "error_color": "#ea7878",
  5. "navigation": "SIDEBAR",
  6. "encoding": "utf-8",
  7. "run_validators": true,
  8. "default_size": [
  9. 610,
  10. 530
  11. ],
  12. "num_required_cols": 2,
  13. "program_description": "Example application to show Gooey's various widgets",
  14. "poll_external_updates": false,
  15. "header_bg_color": "#ffffff",
  16. "footer_bg_color": "#f0f0f0",
  17. "sidebar_title": "Your Custom Title",
  18. "sidebar_bg_color": "#f2f2f2",
  19. "program_name": "all_widgets",
  20. "progress_expr": null,
  21. "language": "english",
  22. "auto_start": false,
  23. "show_stop_warning": true,
  24. "disable_stop_button": false,
  25. "use_legacy_titles": true,
  26. "terminal_font_family": null,
  27. "show_advanced": true,
  28. "header_height": 80,
  29. "widgets": {
  30. "all_widgets.py": {
  31. "command": "::gooey/default",
  32. "contents": [
  33. {
  34. "items": [
  35. {
  36. "data": {
  37. "commands": [
  38. "--textfield"
  39. ],
  40. "help": null,
  41. "display_name": "textfield",
  42. "choices": [],
  43. "dest": "textfield",
  44. "nargs": "",
  45. "default": 2,
  46. "required": false
  47. },
  48. "id": "--textfield",
  49. "options": {
  50. "error_color": "#ea7878",
  51. "validator": {
  52. "test": "int(user_input) > 5",
  53. "message": "number must be greater than 5"
  54. },
  55. "external_validator": {
  56. "cmd": ""
  57. }
  58. },
  59. "type": "TextField",
  60. "cli_type": "optional",
  61. "required": false
  62. },
  63. {
  64. "data": {
  65. "commands": [
  66. "--textarea"
  67. ],
  68. "help": null,
  69. "display_name": "textarea",
  70. "choices": [],
  71. "dest": "textarea",
  72. "nargs": "",
  73. "default": "oneline twoline",
  74. "required": false
  75. },
  76. "id": "--textarea",
  77. "options": {
  78. "error_color": "#ea7878",
  79. "validator": {
  80. "test": "True",
  81. "message": ""
  82. },
  83. "external_validator": {
  84. "cmd": ""
  85. }
  86. },
  87. "type": "Textarea",
  88. "cli_type": "optional",
  89. "required": false
  90. },
  91. {
  92. "data": {
  93. "commands": [
  94. "--password"
  95. ],
  96. "help": null,
  97. "display_name": "password",
  98. "choices": [],
  99. "dest": "password",
  100. "nargs": "",
  101. "default": "hunter42",
  102. "required": false
  103. },
  104. "id": "--password",
  105. "options": {
  106. "error_color": "#ea7878",
  107. "validator": {
  108. "test": "True",
  109. "message": ""
  110. },
  111. "external_validator": {
  112. "cmd": ""
  113. }
  114. },
  115. "type": "PasswordField",
  116. "cli_type": "optional",
  117. "required": false
  118. },
  119. {
  120. "data": {
  121. "commands": [
  122. "--commandfield"
  123. ],
  124. "help": null,
  125. "display_name": "commandfield",
  126. "choices": [],
  127. "dest": "commandfield",
  128. "nargs": "",
  129. "default": "cmdr",
  130. "required": false
  131. },
  132. "id": "--commandfield",
  133. "options": {
  134. "error_color": "#ea7878",
  135. "validator": {
  136. "test": "True",
  137. "message": ""
  138. },
  139. "external_validator": {
  140. "cmd": ""
  141. }
  142. },
  143. "type": "CommandField",
  144. "cli_type": "optional",
  145. "required": false
  146. },
  147. {
  148. "data": {
  149. "commands": [
  150. "--dropdown"
  151. ],
  152. "help": null,
  153. "display_name": "dropdown",
  154. "choices": [
  155. "one",
  156. "two"
  157. ],
  158. "dest": "dropdown",
  159. "nargs": "",
  160. "default": "two",
  161. "required": false
  162. },
  163. "id": "--dropdown",
  164. "options": {
  165. "error_color": "#ea7878",
  166. "validator": {
  167. "test": "True",
  168. "message": ""
  169. },
  170. "external_validator": {
  171. "cmd": ""
  172. }
  173. },
  174. "type": "Dropdown",
  175. "cli_type": "optional",
  176. "required": false
  177. },
  178. {
  179. "data": {
  180. "commands": [
  181. "--listboxie"
  182. ],
  183. "help": null,
  184. "display_name": "listboxie",
  185. "choices": [
  186. "Option one",
  187. "Option two",
  188. "Option three",
  189. "Option four"
  190. ],
  191. "dest": "listboxie",
  192. "nargs": "+",
  193. "default": [
  194. "Option three",
  195. "Option four"
  196. ],
  197. "required": false
  198. },
  199. "id": "--listboxie",
  200. "options": {
  201. "text_color": "",
  202. "hide_text": true,
  203. "validate": "",
  204. "error_color": "#ea7878",
  205. "external_validator": {
  206. "cmd": ""
  207. },
  208. "heading_color": "",
  209. "height": 300,
  210. "validator": {
  211. "test": "True",
  212. "message": ""
  213. },
  214. "hide_heading": true
  215. },
  216. "type": "Listbox",
  217. "cli_type": "optional",
  218. "required": false
  219. },
  220. {
  221. "data": {
  222. "commands": [
  223. "-c",
  224. "--counter"
  225. ],
  226. "help": null,
  227. "display_name": "counter",
  228. "choices": [
  229. "1",
  230. "2",
  231. "3",
  232. "4",
  233. "5",
  234. "6",
  235. "7",
  236. "8",
  237. "9",
  238. "10"
  239. ],
  240. "dest": "counter",
  241. "nargs": "",
  242. "default": 3,
  243. "required": false
  244. },
  245. "id": "-c",
  246. "options": {
  247. "error_color": "#ea7878",
  248. "validator": {
  249. "test": "True",
  250. "message": ""
  251. },
  252. "external_validator": {
  253. "cmd": ""
  254. }
  255. },
  256. "type": "Counter",
  257. "cli_type": "optional",
  258. "required": false
  259. },
  260. {
  261. "data": {
  262. "commands": [
  263. "-o",
  264. "--overwrite"
  265. ],
  266. "help": null,
  267. "display_name": "overwrite",
  268. "choices": [],
  269. "dest": "overwrite",
  270. "nargs": "",
  271. "default": true,
  272. "required": false
  273. },
  274. "id": "-o",
  275. "options": {
  276. "error_color": "#ea7878",
  277. "validator": {
  278. "test": "True",
  279. "message": ""
  280. },
  281. "external_validator": {
  282. "cmd": ""
  283. }
  284. },
  285. "type": "CheckBox",
  286. "cli_type": "optional",
  287. "required": false
  288. },
  289. {
  290. "options": {
  291. "initial_selection": 1
  292. },
  293. "data": {
  294. "commands": [
  295. [
  296. "--mutexone"
  297. ],
  298. [
  299. "--mutextwo"
  300. ]
  301. ],
  302. "widgets": [
  303. {
  304. "data": {
  305. "commands": [
  306. "--mutexone"
  307. ],
  308. "help": "Show more details",
  309. "display_name": "mutexone",
  310. "choices": [],
  311. "dest": "mutexone",
  312. "nargs": "",
  313. "default": true,
  314. "required": false
  315. },
  316. "id": "--mutexone",
  317. "options": {
  318. "error_color": "#ea7878",
  319. "validator": {
  320. "test": "True",
  321. "message": ""
  322. },
  323. "external_validator": {
  324. "cmd": ""
  325. }
  326. },
  327. "type": "CheckBox",
  328. "cli_type": "optional",
  329. "required": false
  330. },
  331. {
  332. "data": {
  333. "commands": [
  334. "--mutextwo"
  335. ],
  336. "help": null,
  337. "display_name": "mutextwo",
  338. "choices": [],
  339. "dest": "mutextwo",
  340. "nargs": "",
  341. "default": "mut-2",
  342. "required": false
  343. },
  344. "id": "--mutextwo",
  345. "options": {
  346. "error_color": "#ea7878",
  347. "validator": {
  348. "test": "True",
  349. "message": ""
  350. },
  351. "external_validator": {
  352. "cmd": ""
  353. }
  354. },
  355. "type": "TextField",
  356. "cli_type": "optional",
  357. "required": false
  358. }
  359. ]
  360. },
  361. "id": "08995171-905b-4ec3-9b93-6e91fb1369d7",
  362. "group_name": "Choose Option",
  363. "type": "RadioGroup",
  364. "cli_type": "optional",
  365. "required": true
  366. },
  367. {
  368. "data": {
  369. "commands": [
  370. "--filechooser"
  371. ],
  372. "help": null,
  373. "display_name": "filechooser",
  374. "choices": [],
  375. "dest": "filechooser",
  376. "nargs": "",
  377. "default": "fc-value",
  378. "required": false
  379. },
  380. "id": "--filechooser",
  381. "options": {
  382. "error_color": "#ea7878",
  383. "validator": {
  384. "test": "True",
  385. "message": ""
  386. },
  387. "external_validator": {
  388. "cmd": ""
  389. }
  390. },
  391. "type": "FileChooser",
  392. "cli_type": "optional",
  393. "required": false
  394. },
  395. {
  396. "data": {
  397. "commands": [
  398. "--filesaver"
  399. ],
  400. "help": null,
  401. "display_name": "filesaver",
  402. "choices": [],
  403. "dest": "filesaver",
  404. "nargs": "",
  405. "default": "fs-value",
  406. "required": false
  407. },
  408. "id": "--filesaver",
  409. "options": {
  410. "error_color": "#ea7878",
  411. "validator": {
  412. "test": "True",
  413. "message": ""
  414. },
  415. "external_validator": {
  416. "cmd": ""
  417. }
  418. },
  419. "type": "FileSaver",
  420. "cli_type": "optional",
  421. "required": false
  422. },
  423. {
  424. "data": {
  425. "commands": [
  426. "--dirchooser"
  427. ],
  428. "help": null,
  429. "display_name": "dirchooser",
  430. "choices": [],
  431. "dest": "dirchooser",
  432. "nargs": "",
  433. "default": "dc-value",
  434. "required": false
  435. },
  436. "id": "--dirchooser",
  437. "options": {
  438. "error_color": "#ea7878",
  439. "validator": {
  440. "test": "True",
  441. "message": ""
  442. },
  443. "external_validator": {
  444. "cmd": ""
  445. }
  446. },
  447. "type": "DirChooser",
  448. "cli_type": "optional",
  449. "required": false
  450. },
  451. {
  452. "data": {
  453. "commands": [
  454. "--datechooser"
  455. ],
  456. "help": null,
  457. "display_name": "datechooser",
  458. "choices": [],
  459. "dest": "datechooser",
  460. "nargs": "",
  461. "default": "2015-01-01",
  462. "required": false
  463. },
  464. "id": "--datechooser",
  465. "options": {
  466. "error_color": "#ea7878",
  467. "validator": {
  468. "test": "True",
  469. "message": ""
  470. },
  471. "external_validator": {
  472. "cmd": ""
  473. }
  474. },
  475. "type": "DateChooser",
  476. "cli_type": "optional",
  477. "required": false
  478. }
  479. ],
  480. "name": "Optional Arguments",
  481. "groups": [],
  482. "options": {
  483. "show_border": false,
  484. "columns": 2,
  485. "padding": 10
  486. },
  487. "description": null
  488. }
  489. ]
  490. }
  491. },
  492. "num_optional_cols": 2,
  493. "tabbed_groups": false,
  494. "terminal_font_weight": null,
  495. "terminal_panel_color": "#F0F0F0",
  496. "disable_progress_bar_animation": false,
  497. "target": "\"F:\\Dropbox\\pretty_gui\\Gooey\\venv3\\Scripts\\python.exe\" -u \"F:/Dropbox/pretty_gui/Gooey/gooey/tests/all_widgets.py\"",
  498. "manual_start": false,
  499. "group_by_type": true,
  500. "header_show_title": true,
  501. "show_success_modal": false,
  502. "language_dir": "F:\\Dropbox\\pretty_gui\\Gooey\\gooey\\languages",
  503. "header_show_subtitle": true,
  504. "monospace_display": false,
  505. "terminal_font_size": null,
  506. "layout": "standard",
  507. "header_image_center": false,
  508. "body_bg_color": "#f0f0f0",
  509. "terminal_font_color": "#000000",
  510. "show_sidebar": true
  511. }