~ubuntu-branches/debian/sid/djvusmooth/sid

« back to all changes in this revision

Viewing changes to lib/gui/wxcompat.py

  • Committer: Package Import Robot
  • Author(s): Daniel Stender
  • Date: 2015-09-15 15:34:11 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20150915153411-zlz201vxr4wk5d3p
Tags: 0.2.16-1
* New upstream release (Closes: #799017).
* deb/control:
  + added dh-python to build deps.
  + put python-djvu and python-wxgtk3.0 also into build-deps (needed by the
    tests).
  + dropped Depends: against python-xdg (Closes: #793364).
* deb/copyright: updated.
* deb/watch: watch pypi.debian.net.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# encoding=UTF-8
2
2
 
3
 
# Copyright © 2014 Jakub Wilk <jwilk@jwilk.net>
4
 
#
5
 
# This package is free software; you can redistribute it and/or modify
6
 
# it under the terms of the GNU General Public License as published by
7
 
# the Free Software Foundation; version 2 dated June, 1991.
8
 
#
9
 
# This package is distributed in the hope that it will be useful, but
10
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
 
# General Public License for more details.
 
3
# Copyright © 2014-2015 Jakub Wilk <jwilk@jwilk.net>
 
4
#
 
5
# This file is part of djvusmooth.
 
6
#
 
7
# djvusmooth is free software; you can redistribute it and/or modify it
 
8
# under the terms of the GNU General Public License version 2 as published
 
9
# by the Free Software Foundation.
 
10
#
 
11
# djvusmooth is distributed in the hope that it will be useful, but WITHOUT
 
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
13
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 
14
# more details.
13
15
 
14
16
'''
15
17
work-arounds for wxPython 3.0 quirks
19
21
 
20
22
# In wxPython 3.0, if the focus is on a wxTreeCtrl or a wxListCtrl, menu
21
23
# events for at last Page Up, Page Down, Ctrl+Home and Ctrl+End are getting
22
 
# lost. This module implementes wxEVT_KEY_DOWN handler to work-around this
 
24
# lost. This module implements wxEVT_KEY_DOWN handler to work-around this
23
25
# problem.
24
26
#
25
27
# https://bugs.debian.org/758950#26
57
59
        wx.PostEvent(window, evt)
58
60
 
59
61
if wx.VERSION < (3, 0):
 
62
    del on_key_down  # quieten pyflakes
60
63
    def on_key_down(ctrl, event):
61
64
        event.Skip()
62
65
 
63
 
# vim:ts=4 sw=4 et
 
66
# vim:ts=4 sts=4 sw=4 et