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.

279 lines
7.2 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. {
  2. "language_dir": "/Users/ckiehl/Documents/Gooey/gooey/languages",
  3. "image_dir": "default",
  4. "language": "english",
  5. "disable_progress_bar_animation": false,
  6. "default_size": [
  7. 610,
  8. 530
  9. ],
  10. "manual_start": false,
  11. "monospace_display": false,
  12. "target": "'/Users/ckiehl/Documents/Gooey/venv/bin/python' -u '/Users/ckiehl/Documents/Gooey/gooey/examples/demo.py'",
  13. "disable_stop_button": false,
  14. "progress_regex": null,
  15. "progress_expr": null,
  16. "num_optional_cols": 2,
  17. "program_name": "Widget Demo",
  18. "num_required_cols": 2,
  19. "show_advanced": true,
  20. "auto_start": false,
  21. "program_description": "Example application to show Gooey's various widgets",
  22. "widgets": {
  23. "primary": {
  24. "command": null,
  25. "contents": [
  26. {
  27. "required": true,
  28. "type": "FileChooser",
  29. "data": {
  30. "display_name": "FileChooser",
  31. "choices": [],
  32. "nargs": "",
  33. "help": "Name of the file you want to process",
  34. "commands": [],
  35. "default": null
  36. }
  37. },
  38. {
  39. "required": true,
  40. "type": "DirChooser",
  41. "data": {
  42. "display_name": "DirectoryChooser",
  43. "choices": [],
  44. "nargs": "",
  45. "help": "Name of the file you want to process",
  46. "commands": [],
  47. "default": null
  48. }
  49. },
  50. {
  51. "required": true,
  52. "type": "FileSaver",
  53. "data": {
  54. "display_name": "FileSaver",
  55. "choices": [],
  56. "nargs": "",
  57. "help": "Name of the file you want to process",
  58. "commands": [],
  59. "default": null
  60. }
  61. },
  62. {
  63. "required": true,
  64. "type": "MultiFileChooser",
  65. "data": {
  66. "display_name": "MultiFileSaver",
  67. "choices": [],
  68. "nargs": "",
  69. "help": "Name of the file you want to process",
  70. "commands": [],
  71. "default": null
  72. }
  73. },
  74. {
  75. "required": true,
  76. "type": "MultiDirChooser",
  77. "data": {
  78. "display_name": "MultiDirChooser",
  79. "choices": [],
  80. "nargs": "",
  81. "help": "Name of the file you want to process",
  82. "commands": [],
  83. "default": null
  84. }
  85. },
  86. {
  87. "required": true,
  88. "type": "TextField",
  89. "data": {
  90. "display_name": "directory",
  91. "choices": [],
  92. "nargs": "",
  93. "help": "Directory to store output",
  94. "commands": [],
  95. "default": null
  96. }
  97. },
  98. {
  99. "required": false,
  100. "type": "TextField",
  101. "data": {
  102. "display_name": "duration",
  103. "choices": [],
  104. "nargs": "",
  105. "help": "Duration (in seconds) of the program output",
  106. "commands": [
  107. "-d",
  108. "--duration"
  109. ],
  110. "default": 2
  111. }
  112. },
  113. {
  114. "required": false,
  115. "type": "DateChooser",
  116. "data": {
  117. "display_name": "cron_schedule",
  118. "choices": [],
  119. "nargs": "",
  120. "help": "datetime when the cron should begin",
  121. "commands": [
  122. "-s",
  123. "--cron-schedule"
  124. ],
  125. "default": null
  126. }
  127. },
  128. {
  129. "required": false,
  130. "type": "CheckBox",
  131. "data": {
  132. "display_name": "showtime",
  133. "choices": [],
  134. "nargs": "",
  135. "help": "display the countdown timer",
  136. "commands": [
  137. "-c",
  138. "--showtime"
  139. ],
  140. "default": false
  141. }
  142. },
  143. {
  144. "required": false,
  145. "type": "CheckBox",
  146. "data": {
  147. "display_name": "pause",
  148. "choices": [],
  149. "nargs": "",
  150. "help": "Pause execution",
  151. "commands": [
  152. "-p",
  153. "--pause"
  154. ],
  155. "default": false
  156. }
  157. },
  158. {
  159. "required": false,
  160. "type": "Counter",
  161. "data": {
  162. "display_name": "verbose",
  163. "choices": [
  164. "1",
  165. "2",
  166. "3",
  167. "4",
  168. "5",
  169. "6",
  170. "7",
  171. "8",
  172. "9",
  173. "10"
  174. ],
  175. "nargs": "",
  176. "help": null,
  177. "commands": [
  178. "-v",
  179. "--verbose"
  180. ],
  181. "default": null
  182. }
  183. },
  184. {
  185. "required": false,
  186. "type": "CheckBox",
  187. "data": {
  188. "display_name": "overwrite",
  189. "choices": [],
  190. "nargs": "",
  191. "help": "Overwrite output file (if present)",
  192. "commands": [
  193. "-o",
  194. "--overwrite"
  195. ],
  196. "default": false
  197. }
  198. },
  199. {
  200. "required": false,
  201. "type": "Dropdown",
  202. "data": {
  203. "display_name": "recursive",
  204. "choices": [
  205. "yes",
  206. "no"
  207. ],
  208. "nargs": "",
  209. "help": "Recurse into subfolders",
  210. "commands": [
  211. "-r",
  212. "--recursive"
  213. ],
  214. "default": null
  215. }
  216. },
  217. {
  218. "required": false,
  219. "type": "TextField",
  220. "data": {
  221. "display_name": "writelog",
  222. "choices": [],
  223. "nargs": "",
  224. "help": "Dump output to local file",
  225. "commands": [
  226. "-w",
  227. "--writelog"
  228. ],
  229. "default": "writelogs"
  230. }
  231. },
  232. {
  233. "required": false,
  234. "type": "CheckBox",
  235. "data": {
  236. "display_name": "error",
  237. "choices": [],
  238. "nargs": "",
  239. "help": "Stop process on error (default: No)",
  240. "commands": [
  241. "-e",
  242. "--error"
  243. ],
  244. "default": false
  245. }
  246. },
  247. {
  248. "data": [
  249. {
  250. "choices": null,
  251. "nargs": "",
  252. "display_name": "verbose",
  253. "help": "Show more details",
  254. "commands": [
  255. "-t",
  256. "--verbozze"
  257. ]
  258. },
  259. {
  260. "choices": null,
  261. "nargs": "",
  262. "display_name": "quiet",
  263. "help": "Only output on error",
  264. "commands": [
  265. "-q",
  266. "--quiet"
  267. ]
  268. }
  269. ],
  270. "required": false,
  271. "type": "RadioGroup",
  272. "group_name": "Choose Option"
  273. }
  274. ]
  275. }
  276. },
  277. "group_by_type": true,
  278. "layout_type": "standard"
  279. }