PyQt QCalendarWidget events question

Chris Angelico rosuav at gmail.com
Tue Jul 17 19:41:35 CEST 2012


On Tue, Jul 17, 2012 at 7:34 PM,  <tinnews at isbd.co.uk> wrote:
> It's so fundamental to most GUIs that single-click
> and double-click allow one to do different things with the same object

Kinda yes, kinda no. Most GUIs and GUI recommendations would either
enforce or strongly suggest that the double-click action incorporate
the click action; for instance, click to select, double-click to open.

The series of events usually goes:

Mouse down
Mouse up
Click
Mouse down
Mouse up
Double-click

They're fired as things happen and in that order. (Some systems insert
another Click just before the Double-click, but that's generally
unhelpful.) Please code your application so that this isn't a problem
to it, because anything else causes untold confusion to the users.

ChrisA



More information about the Python-list mailing list