~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to wxPython/wx/lib/ogl/_basic.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: iso-8859-1 -*-
 
1
# -*- coding: utf-8 -*-
2
2
#----------------------------------------------------------------------------
3
3
# Name:         basic.py
4
4
# Purpose:      The basic OGL shapes
5
5
#
6
 
# Author:       Pierre Hj�lm (from C++ original by Julian Smart)
 
6
# Author:       Pierre Hjälm (from C++ original by Julian Smart)
7
7
#
8
8
# Created:      2004-05-08
9
 
# RCS-ID:       $Id: _basic.py 54677 2008-07-18 03:26:50Z RD $
10
 
# Copyright:    (c) 2004 Pierre Hj�lm - 1998 Julian Smart
 
9
# RCS-ID:       $Id: _basic.py 67534 2011-04-18 20:52:13Z RD $
 
10
# Copyright:    (c) 2004 Pierre Hjälm - 1998 Julian Smart
11
11
# Licence:      wxWindows license
12
12
#----------------------------------------------------------------------------
13
13
 
2726
2726
 
2727
2727
            self._originalPoints[i] = x1 * cosTheta - y1 * sinTheta + x * (1 - cosTheta) + y * sinTheta, x1 * sinTheta + y1 * cosTheta + y * (1 - cosTheta) + x * sinTheta
2728
2728
 
2729
 
        # Added by Pierre Hj�lm. If we don't do this the outline will be
 
2729
        # Added by Pierre Hjälm. If we don't do this the outline will be
2730
2730
        # the wrong size. Hopefully it won't have any ill effects.
2731
2731
        self.UpdateOriginalPoints()
2732
2732
        
2991
2991
            self._actualColourObject = wx.TheColourDatabase.Find("BLACK")
2992
2992
            self._actualPenObject = None
2993
2993
 
2994
 
        self._formattedText = []
 
2994
            self._formattedText = []
2995
2995
 
2996
2996
    def ClearText(self):
2997
2997
        self._formattedText = []