moved import down to make wxpython optional
This commit is contained in:
1 parent
96b0937e3e
commit
569e402bde
1 file changed
+4
-4
@@ -7,11 +7,7 @@ import NetworkManager
|
|||||||
import NoGUIstuff
|
import NoGUIstuff
|
||||||
import time
|
import time
|
||||||
import threading
|
import threading
|
||||||
import wx
|
|
||||||
import GUI
|
import GUI
|
||||||
|
|
||||||
#pyDev error fix
|
|
||||||
wx=wx
|
|
||||||
|
|
||||||
class MinecraftLoginThread(threading.Thread):
|
class MinecraftLoginThread(threading.Thread):
|
||||||
|
|
||||||
@@ -103,6 +99,10 @@ if __name__ == "__main__":
|
|||||||
chat = raw_input()
|
chat = raw_input()
|
||||||
PacketSenderManager.send03(connection.grabSocket(), chat)
|
PacketSenderManager.send03(connection.grabSocket(), chat)
|
||||||
else:
|
else:
|
||||||
|
import wx
|
||||||
|
#pydev error fix
|
||||||
|
wx=wx
|
||||||
|
|
||||||
app = wx.PySimpleApp()
|
app = wx.PySimpleApp()
|
||||||
Login = GUI.MainFrame(None, -1, "")
|
Login = GUI.MainFrame(None, -1, "")
|
||||||
app.SetTopWindow(Login)
|
app.SetTopWindow(Login)
|
||||||
|
|||||||
Reference in new issue
Block a user