RE: Re: Looking for an "on/off" toggle control

Steve Barnes <[email protected]> Thu, 14 Jan 2021 08:04:15 +0000
Newsgroups gmane.comp.python.wxpython
Message-ID <VI1PR03MB4479815C0BF89D92363B2D919BA80@VI1PR03MB4479.eurprd03.prod.outlook.com>
It adds some complexity as you need to either provide and select from multiple bitmaps or scale the bitmaps (preferably down) both based on the current screen resolution but it is available now.

From: [email protected] <[email protected]> On Behalf Of Matthias Brennwald
Sent: 14 January 2021 06:40
To: [email protected]
Subject: RE: [wxPython-users] Re: Looking for an "on/off" toggle control

Wouldn't bitmapped buttons ask for trouble with todays variety of screen resolutions?

On Do, Jan 14, 2021 at 04:43, Steve Barnes <[email protected]<mailto:[email protected]>> wrote:

Of course the agw SBitmapToggleButton could be used to provide a non-native switch effect. It would still be a button rather than a switch but with the appropriate bitmaps could give the appearance of just about any switch.

From: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> On Behalf Of john fabiani
Sent: 13 January 2021 22:18
To: [email protected]<mailto:[email protected]>
Subject: Re: [wxPython-users] Re: Looking for an "on/off" toggle control


I agree with your links.  That said - all we had was a checkbox or the toggle switch and some how we made due.

Johnf
On 1/13/21 12:45 PM, Matt Newville wrote:


On Wed, Jan 13, 2021 at 2:01 PM john fabiani <[email protected]<mailto:[email protected]>> wrote:
I normally don't use anything from windows 10 uwp - but I am fairly sure
the Toggle switch is available.

Also "re-inventing"  - if you are not willing to write a custom widget
then you will either have to wait until some future version that has the
control built-in or make do with the checkbox.  You must be aware that
for many many years the checkbox was all that was available on all
platforms.  It seem to work just fine.  The switch is a new UI
development as are many others.  I happen to like it - but many others I
don't believe add anything other than change for changes sake.  That
said, I believe the current toggle switch conveys the action of being
"on or off" very well.

References:
   https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/toggles<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fdesign%2Fcontrols-and-patterns%2Ftoggles&data=04%7C01%7C%7C8fb59590cd0d4290fc1408d8b8573016%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462031890507161%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7%2BA2qD7Ed0Sr8L9MHT8D%2B1lireYVmiDPXs88NHlS47Y%3D&reserved=0>
   https://developer.apple.com/design/human-interface-guidelines/macos/buttons/switches/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.apple.com%2Fdesign%2Fhuman-interface-guidelines%2Fmacos%2Fbuttons%2Fswitches%2F&data=04%7C01%7C%7C8fb59590cd0d4290fc1408d8b8573016%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462031890517156%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=z040I1483LLgZYrGIwMrYBOrqD638vInCqswmPHvhZA%3D&reserved=0>

Both companies suggest that toggle switches have a different purpose from a checkbox, implying both immediate action (as opposed to the selection of a preference) and propagation to other GUI elements, turning on/off a whole category of options and displays for example.

--Matt

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/CA%2B7ESbqwVdq%3DyXbNypgGNHCWnuM4Qe_0T1i7Tuk3yNjnQspzbg%40mail.gmail.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fwxpython-users%2FCA%252B7ESbqwVdq%253DyXbNypgGNHCWnuM4Qe_0T1i7Tuk3yNjnQspzbg%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7C8fb59590cd0d4290fc1408d8b8573016%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462031890517156%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lA1j%2FT%2B%2BmI6vHqpXGD9flzniTRV6kq5fOGmVxNm9hMw%3D&reserved=0>.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/48ec4c47-d518-9975-3391-5f6e5f2d29cc%40gmail.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fwxpython-users%2F48ec4c47-d518-9975-3391-5f6e5f2d29cc%2540gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7C8fb59590cd0d4290fc1408d8b8573016%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462031890527146%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=nXB81PR9yUWZAXCLA7gmWsdcw%2FkgRKYngloTTljNjmM%3D&reserved=0>.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/VI1PR03MB44790BABF461FD2FEF12BE8D9BA80%40VI1PR03MB4479.eurprd03.prod.outlook.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fwxpython-users%2FVI1PR03MB44790BABF461FD2FEF12BE8D9BA80%2540VI1PR03MB4479.eurprd03.prod.outlook.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7C8fb59590cd0d4290fc1408d8b8573016%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462031890537149%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ppd6A%2BUSm6CoRcJwFNNC1aoRrkOgFlB72rkn2L9I2FQ%3D&reserved=0>.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>.
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/0UVWMQ.7I5FXIYNQBZJ1%40gmail.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fwxpython-users%2F0UVWMQ.7I5FXIYNQBZJ1%2540gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7C%7C8fb59590cd0d4290fc1408d8b8573016%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637462031890537149%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TuTyajboQnahrIqks09NxjL3mCRKucu39xT4MfAVljc%3D&reserved=0>.

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/VI1PR03MB4479815C0BF89D92363B2D919BA80%40VI1PR03MB4479.eurprd03.prod.outlook.com.