Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
ignore absence of gtk when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Frasca committed Jan 3, 2015
1 parent aeb515a commit 3cc9cb8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions bauble/fake_gtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ class fake:
MESSAGE_ERROR = ''
MESSAGE_WARNING = ''
MESSAGE_INFO = ''
BUTTONS_OK = None
DIALOG_MODAL = DIALOG_DESTROY_WITH_PARENT = BUTTONS_OK = None
VBox = object
Action = Expander = ScrolledWindow = object
Menu = Action = Expander = ScrolledWindow = object
EventBox = object

def MessageDialog(*args):
pass

gtk = fake()
gobject = fake()
8 changes: 6 additions & 2 deletions bauble/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
import Queue

import fibra
import gobject
import gtk

try:
import gtk
import gobject
except:
from bauble.fake_gtk import gtk, gobject

import bauble
import bauble.utils as utils
Expand Down

0 comments on commit 3cc9cb8

Please sign in to comment.