Main window: Lock file based on fcntl module.
Merge pull request #22 from ArseniyK/one_instance

Main window: Lock file based on fcntl module.
Delete trailing whitespaces
Merge pull request #23 from jubalh/develop

Delete trailing whitespaces.