Ignore:
Timestamp:
09/21/23 10:32:56 (8 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

On Linux the CEF message loop is run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/cef.py

    r1099 r1108  
    215215def _initializeCEF(args, initializedCallback):
    216216    """Perform the actual initialization of CEF using the given arguments."""
    217     if os.name=="nt":
    218         _initializeCEF1(args, initializedCallback)
    219     else:
    220         GObject.timeout_add(100, _initializeCEF1, args, initializedCallback)
    221 
    222 #------------------------------------------------------------------------------
    223 
    224 def _initializeCEF1(args, initializedCallback):
    225     """Perform the actual initialization of CEF using the given arguments."""
    226217    print("Initializing CEF with args:", args)
    227218
     
    261252    initializedCallback()
    262253    return False
     254
     255#------------------------------------------------------------------------------
     256
     257def messageLoop():
     258    """Run the CEF message loop"""
     259    cefpython.MessageLoop()
    263260
    264261#------------------------------------------------------------------------------
     
    383380#------------------------------------------------------------------------------
    384381
     382def quitMessageLoop():
     383    """Quit the CEF message loop"""
     384    cefpython.QuitMessageLoop()
     385
     386#------------------------------------------------------------------------------
     387
    385388def finalize():
    386389    """Finalize the Chrome Embedded Framework."""
Note: See TracChangeset for help on using the changeset viewer.