{"action":"created","issue":{"url":"https://api.github.com/repos/dk/Prima/issues/50","repository_url":"https://api.github.com/repos/dk/Prima","labels_url":"https://api.github.com/repos/dk/Prima/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/dk/Prima/issues/50/comments","events_url":"https://api.github.com/repos/dk/Prima/issues/50/events","html_url":"https://github.com/dk/Prima/issues/50","id":204726567,"number":50,"title":"Feature wish: Spinner widget and indeterminate mode in Prima::Sliders::Gauge","user":{"login":"MaxPerl","id":17377645,"avatar_url":"https://avatars.githubusercontent.com/u/17377645?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxPerl","html_url":"https://github.com/MaxPerl","followers_url":"https://api.github.com/users/MaxPerl/followers","following_url":"https://api.github.com/users/MaxPerl/following{/other_user}","gists_url":"https://api.github.com/users/MaxPerl/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxPerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxPerl/subscriptions","organizations_url":"https://api.github.com/users/MaxPerl/orgs","repos_url":"https://api.github.com/users/MaxPerl/repos","events_url":"https://api.github.com/users/MaxPerl/events{/privacy}","received_events_url":"https://api.github.com/users/MaxPerl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-01T22:35:19Z","updated_at":"2017-02-01T22:36:22Z","closed_at":null,"body":"Dear Dimitry,\r\nI have created a little spinner widget similar as in Gtk3 (see [GtkSpinner Widget](https://developer.gnome.org/gtk3/stable/GtkSpinner.html) ).\r\nPerhaps this would be a good idea for Prima. There is no progress widget with indeterminate time (I will try to add an indeterminate modus to Prima::Sliders::Gauge but this will last some time).\r\n\r\nI noticed some problems:\r\n\r\n1) Why does this not work:\r\n```\r\nsub init\r\n{\r\n\tmy $self = shift;\r\n\tmy %profile = $self-> SUPER::init(@_);\r\n\r\n\tfor (qw( style scaleFactor start_angle end_angle is_active colors))\r\n\t{$self-> $_($profile{$_}); }\r\n\t\r\n\treturn %profile;\r\n}\r\n```\r\nI get the error:\r\n\r\n> Use of uninitialized value $MySpinner::scale_factor in multiplication (*) \r\n\r\nInstead of this I have to do `my %profile = $self->SUPER::init(@_);` later. I think it is just a problem of understanding in my person..,\r\n\r\n2) If color is passed not as BAREWORD but in single or double quotes I get the following errors:\r\n\r\n> Argument \"cl::Blue\" isn't numeric in subroutine entry at ./14_toggle_button.pl line 94.\r\n> Argument \"cl::White\" isn't numeric in subroutine entry at ./14_toggle_button.pl line 117.\r\n> and so on....\r\n\r\nI am looking forward for your feedback and help.\r\n\r\nBest wishes,\r\nMax\r\n\r\nPS.: I implemented the Module in a little demo program with a button. Then you can see the Widget in action\r\n[14_toggle_button.txt](https://github.com/dk/Prima/files/746350/14_toggle_button.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dk/Prima/issues/comments/276805666","html_url":"https://github.com/dk/Prima/issues/50#issuecomment-276805666","issue_url":"https://api.github.com/repos/dk/Prima/issues/50","id":276805666,"user":{"login":"MaxPerl","id":17377645,"avatar_url":"https://avatars.githubusercontent.com/u/17377645?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxPerl","html_url":"https://github.com/MaxPerl","followers_url":"https://api.github.com/users/MaxPerl/followers","following_url":"https://api.github.com/users/MaxPerl/following{/other_user}","gists_url":"https://api.github.com/users/MaxPerl/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxPerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxPerl/subscriptions","organizations_url":"https://api.github.com/users/MaxPerl/orgs","repos_url":"https://api.github.com/users/MaxPerl/repos","events_url":"https://api.github.com/users/MaxPerl/events{/privacy}","received_events_url":"https://api.github.com/users/MaxPerl/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T22:36:22Z","updated_at":"2017-02-01T22:36:22Z","body":"And the standard circle style\r\n[14_toggle_button.txt](https://github.com/dk/Prima/files/746352/14_toggle_button.txt)\r\n"}}
{"actor":{"display_login":"MaxPerl"}}