Changeset 995:ad90726834d4 for src/mlx/gui/cef.py
- Timestamp:
- 07/04/19 17:39:03 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/cef.py
r945 r995 101 101 def call(self, plan, getCredentials, updateProgress, htmlFilePath): 102 102 """Call SimBrief with the given plan.""" 103 self._timeoutID = gobject.timeout_add(120*1000, self._timedOut)103 self._timeoutID = GObject.timeout_add(120*1000, self._timedOut) 104 104 105 105 self._plan = plan … … 196 196 if results!=SIMBRIEF_RESULT_NONE: 197 197 if self._timeoutID is not None: 198 gobject.source_remove(self._timeoutID)198 GObject.source_remove(self._timeoutID) 199 199 self._plan = None 200 200 … … 251 251 f.write(availableInfo["plan_html"]) 252 252 253 gobject.idle_add(self._resultsAvailable, flightInfo)253 GObject.idle_add(self._resultsAvailable, flightInfo) 254 254 255 255 #------------------------------------------------------------------------------ … … 260 260 _toQuit = False 261 261 262 gobject.threads_init()262 GObject.threads_init() 263 263 264 264 _simBriefHandler = SimBriefHandler() … … 297 297 cefpython.Initialize(settings, switches) 298 298 299 gobject.timeout_add(10, _handleTimeout)299 GObject.timeout_add(10, _handleTimeout) 300 300 301 301 print("Initialized, executing callback...")
Note:
See TracChangeset
for help on using the changeset viewer.