{"action":"opened","issue":{"url":"https://api.github.com/repos/chriskiehl/Gooey/issues/208","repository_url":"https://api.github.com/repos/chriskiehl/Gooey","labels_url":"https://api.github.com/repos/chriskiehl/Gooey/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/chriskiehl/Gooey/issues/208/comments","events_url":"https://api.github.com/repos/chriskiehl/Gooey/issues/208/events","html_url":"https://github.com/chriskiehl/Gooey/issues/208","id":240133897,"number":208,"title":"Support non-boolean mutually exclusive options","user":{"login":"carlfischerjba","id":15981535,"avatar_url":"https://avatars3.githubusercontent.com/u/15981535?v=3","gravatar_id":"","url":"https://api.github.com/users/carlfischerjba","html_url":"https://github.com/carlfischerjba","followers_url":"https://api.github.com/users/carlfischerjba/followers","following_url":"https://api.github.com/users/carlfischerjba/following{/other_user}","gists_url":"https://api.github.com/users/carlfischerjba/gists{/gist_id}","starred_url":"https://api.github.com/users/carlfischerjba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlfischerjba/subscriptions","organizations_url":"https://api.github.com/users/carlfischerjba/orgs","repos_url":"https://api.github.com/users/carlfischerjba/repos","events_url":"https://api.github.com/users/carlfischerjba/events{/privacy}","received_events_url":"https://api.github.com/users/carlfischerjba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-03T10:39:27Z","updated_at":"2017-07-03T10:39:27Z","closed_at":null,"body":"Currently mutually exclusive options appear as radio buttons even when they are specified as float (or other type).\r\n\r\nExpected behaviour would be for these to appear as radio buttons followed by the appropriate sort of input field (a text field in this case). \r\n\r\n![image](https://user-images.githubusercontent.com/15981535/27789246-af3f404a-5fe3-11e7-8234-754ffbe4e434.png)\r\n\r\n\r\n```lang=python\r\nfrom gooey import Gooey, GooeyParser\r\n\r\n@Gooey(optional_cols=2, program_name=\"Subparser Layout Demo\")\r\ndef main():\r\n    parser = GooeyParser(description='Demo')\r\n\r\n    area_threshold_group = parser.add_mutually_exclusive_group()\r\n    area_threshold_group.add_argument('--threshold', type=float, default=0,\r\n                                      help='Positive value')\r\n    area_threshold_group.add_argument('--relative_threshold', type=float, default=0,\r\n                                      help='Value between 0 and 1')                           \r\n                               \r\n    parser.parse_args()\r\n\r\nif __name__ == '__main__':\r\n    main()\r\n```"}}
{"actor":{"display_login":"carlfischerjba"}}