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

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/XRCed/globals.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:
2
2
# Purpose:      XRC editor, global variables
3
3
# Author:       Roman Rolinsky <rolinsky@mema.ucl.ac.be>
4
4
# Created:      02.12.2002
5
 
# RCS-ID:       $Id: globals.py 64107 2010-04-22 14:05:36Z ROL $
 
5
# RCS-ID:       $Id: globals.py 64627 2010-06-18 18:17:45Z ROL $
6
6
 
7
7
import os,sys
8
8
import wx
20
20
 
21
21
progname = 'xrced'
22
22
ProgName = 'XRCed'
23
 
version = '0.2.0-7'
 
23
version = '0.2.0-8'
24
24
# Minimal wxWidgets version
25
25
MinWxVersion = (2,8,0)
26
26
if wx.VERSION[:3] < MinWxVersion:
67
67
def set_debug(v):
68
68
    global _debug
69
69
    _debug = v
 
70
    logger.setLevel(logging.DEBUG)
70
71
def get_debug():
71
72
    return _debug
72
73
 
130
131
        return True
131
132
 
132
133
# Test for object elements (!!! move somewhere?)
 
134
def is_element(node):
 
135
    return node.nodeType == node.ELEMENT_NODE and \
 
136
        node.tagName in ['object', 'object_ref', 'component']
 
137
 
133
138
def is_object(node):
134
 
    return node.nodeType == node.ELEMENT_NODE and \
135
 
        node.tagName in ['object', 'object_ref', 'component'] or \
136
 
        node.nodeType == node.COMMENT_NODE
137
 
 
 
139
    return is_element(node) or node.nodeType == node.COMMENT_NODE
 
 
b'\\ No newline at end of file'