Skip to content

Commit

Permalink
try RTD fix: include QWidget as class variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Aug 31, 2017
1 parent ada4182 commit 18a99c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion msl/qt/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
QtWidgets = object
import logging
class MockQtWidget(object):
QWidget = logging.Handler
QtWidgets = MockQtWidget

from msl.qt import prompt
from msl.qt.io import get_icon
Expand Down

0 comments on commit 18a99c3

Please sign in to comment.