Some bugs fix in Gui.py and dome events were added to WinDefs.py