Ignore:
Timestamp:
07/04/19 17:29:58 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Removed conditions on pygobject (re #347)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/common.py

    r955 r994  
    77# Common definitions to be used by both the GUI and possible other parts
    88#
    9 # The main purpose of this module is to import Gtk+2 or 3 and related modules
    10 # and provide common names for them. There is a similator module in the GUI
    11 # part (\ref mlx.gui.common), which contains the GUI-specific names. This one
    12 # contains only what is used by other modules as well.
    13 # The variable \c pygobject tells which version of Gtk is being used. If it is
    14 # \c True, Gtk+ 3 is used via the PyGObject interface. Otherwise Gtk+ 2 is
    15 # used, which is the default on Windows or when the \c FORCE_PYGTK environment
    16 # variable is set.
    17 
    189#---------------------------------------------------------------------------------------
    1910
     
    2213#-------------------------------------------------------------------------------
    2314
    24 if "FORCE_PYGTK" in os.environ:
    25     print("Using PyGTK")
    26     pygobject = False
    27     import gobject
    28 else:
    29     print("Using PyGObject")
    30     pygobject = True
    31 
    32     from gi.repository import GObject as gobject
     15from gi.repository import GObject as gobject
    3316
    3417#-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.