Ignore:
Timestamp:
05/15/12 15:01:07 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

If the program is started in several instances, the ones after the first one just show the window of the running instance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/mlx.py

    r160 r182  
    4444def main():
    4545    """The main operation of the program."""
     46    from singleton import SingleInstance, raiseCallbackWrapper
     47
     48    instance = SingleInstance("mlx", raiseCallbackWrapper)
     49    if not instance: return
     50
    4651    programDirectory = os.path.dirname(sys.argv[0])
    4752
     
    7984
    8085if __name__ == "__main__":
    81     main()
     86    if instance:
     87        main()
Note: See TracChangeset for help on using the changeset viewer.