Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25519

Re: PyQt QCalendarWidget events question

References <bspdd9-22s.ln1@chris.zbmc.eu> <m2sdd9-s2t.ln1@chris.zbmc.eu> <mailman.2186.1342470497.4697.python-list@python.org> <q5ofd9-id7.ln1@chris.zbmc.eu>
Date 2012-07-18 03:41 +1000
Subject Re: PyQt QCalendarWidget events question
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2232.1342546899.4697.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Jul 17, 2012 at 7:34 PM,  <tinnews@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

PyQt QCalendarWidget events question tinnews@isbd.co.uk - 2012-07-16 16:51 +0100
  Re: PyQt QCalendarWidget events question tinnews@isbd.co.uk - 2012-07-16 17:28 +0100
    Re: Re: PyQt QCalendarWidget events question John Posner <jjposner@optimum.net> - 2012-07-16 15:58 -0400
      Re: PyQt QCalendarWidget events question tinnews@isbd.co.uk - 2012-07-17 10:34 +0100
        Re: PyQt QCalendarWidget events question Chris Angelico <rosuav@gmail.com> - 2012-07-18 03:41 +1000

csiph-web