Changeset 59:a3e0b8455dc8 for src/mlx/fs.py
- Timestamp:
- 04/07/12 08:48:34 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fs.py
r27 r59 4 4 5 5 import const 6 7 import fsuipc 6 8 7 9 #------------------------------------------------------------------------------- … … 13 15 simulator of the given type.""" 14 16 print "fs.ConnectionListener.connected, fsType:", fsType, ", descriptor:", descriptor 17 18 def connectionFailed(self): 19 """Called when the connection could not be established.""" 20 print "fs.ConnectionListener.connectionFailed" 15 21 16 22 def disconnected(self): … … 34 40 assert type in [const.SIM_MSFS9, const.SIM_MSFSX], \ 35 41 "Only MS Flight Simulator 2004 and X are supported" 36 import fsuipc 37 return fsuipc.Simulator(connectionListener) 42 return fsuipc.Simulator(connectionListener, connectAttempts = 3) 38 43 39 44 #-------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.