mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
parent
5d833c988a
commit
cc74efa79a
@ -1905,7 +1905,7 @@ class main(wx.Frame):
|
||||
self.txaExtraLines.append(line)
|
||||
txafile.close()
|
||||
except:
|
||||
print "Error opening .txa file!"
|
||||
print("Error opening .txa file!")
|
||||
self.palettize_saveTxaTxt.SetValue(os.path.join(dirname + os.sep , filename))
|
||||
dlg.Destroy()
|
||||
|
||||
@ -2705,7 +2705,7 @@ class main(wx.Frame):
|
||||
selectedItemIndex = int(self.batchTree.GetItemText(selectedItemId).split()[0])-1
|
||||
batchItem = self.batchList[selectedItemIndex]
|
||||
|
||||
print '\n'+self.BuildCommand(batchItem)
|
||||
print('\n'+self.BuildCommand(batchItem))
|
||||
|
||||
if (batchItem['cmd'].count('maya2egg')):
|
||||
# Display Maya2Egg Tool Panel
|
||||
@ -2840,7 +2840,7 @@ class main(wx.Frame):
|
||||
self.txaExtraLines.append(line)
|
||||
txafile.close()
|
||||
except:
|
||||
print "Error opening .txa file!"
|
||||
print("Error opening .txa file!")
|
||||
|
||||
self.batchItemNameTxt.SetValue(batchItem['label'])
|
||||
|
||||
|
@ -17,8 +17,8 @@ import os
|
||||
from direct.dist import FreezeTool
|
||||
|
||||
def usage(code, msg = ''):
|
||||
print >> sys.stderr, __doc__
|
||||
print >> sys.stderr, msg
|
||||
print(__doc__, file=sys.stderr)
|
||||
print(msg, file=sys.stderr)
|
||||
sys.exit(code)
|
||||
|
||||
if __name__ == '__main__':
|
||||
@ -30,7 +30,7 @@ if __name__ == '__main__':
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], 'h')
|
||||
except getopt.error, msg:
|
||||
except getopt.error as msg:
|
||||
usage(1, msg)
|
||||
|
||||
for opt, arg in opts:
|
||||
|
@ -34,7 +34,7 @@ command = 'env CODESIGN_ALLOCATE="/Developer/Platforms/iPhoneOS.platform/Develop
|
||||
'xcent' : xcent,
|
||||
}
|
||||
|
||||
print command
|
||||
print(command)
|
||||
result = os.system(command)
|
||||
if result != 0:
|
||||
raise StandardError
|
||||
|
@ -11,7 +11,7 @@ SocketIP.InitNetworkDriver();
|
||||
|
||||
addr = SocketAddress()
|
||||
addr.setHost("127.0.0.1",8080)
|
||||
print addr.getIpPort()
|
||||
print(addr.getIpPort())
|
||||
|
||||
|
||||
inbound = SocketTCPListen()
|
||||
@ -23,16 +23,16 @@ while 1 == 1:
|
||||
source = SocketAddress()
|
||||
if inbound.GetIncomingConnection(newsession,source) :
|
||||
#newsession.SetNonBlocking();
|
||||
print source.getIpPort()
|
||||
print(source.getIpPort())
|
||||
newsession.SendData("Hello From the Listener\n\r");
|
||||
|
||||
s = newsession.RecvData(10);
|
||||
print s
|
||||
print newsession.GetLastError()
|
||||
print(s)
|
||||
print(newsession.GetLastError())
|
||||
if newsession.ErrorIsWouldBlocking(newsession.GetLastError()) :
|
||||
print "Reading Would Block"
|
||||
print("Reading Would Block")
|
||||
else:
|
||||
print "Not A Blocking Error"
|
||||
print("Not A Blocking Error")
|
||||
|
||||
newsession.SendData("GoodBy From the Listener\n\r");
|
||||
newsession.Close();
|
||||
|
@ -15,7 +15,7 @@ SocketIP.InitNetworkDriver();
|
||||
|
||||
addr = SocketAddress()
|
||||
addr.setHost("127.0.0.1",6666)
|
||||
print addr.getIpPort()
|
||||
print(addr.getIpPort())
|
||||
|
||||
MyConection = BufferedDatagramConnection(0,4096000,4096000,102400);
|
||||
#help(BufferedDatagramConnection)
|
||||
@ -42,8 +42,8 @@ dg1.addUint16(54321)
|
||||
while 1==1:
|
||||
for x in range(200000):
|
||||
if not MyConection.SendMessage(dg1):
|
||||
print "Error Sending Message"
|
||||
print("Error Sending Message")
|
||||
|
||||
MyConection.Flush();
|
||||
time.sleep(1)
|
||||
print "loop"
|
||||
print("loop")
|
||||
|
@ -15,7 +15,7 @@ SocketIP.InitNetworkDriver();
|
||||
|
||||
addr = SocketAddress()
|
||||
addr.setHost("127.0.0.1",6666)
|
||||
print addr.getIpPort()
|
||||
print(addr.getIpPort())
|
||||
|
||||
MyConection = BufferedDatagramConnection(0,4096000,4096000,102400);
|
||||
#help(BufferedDatagramConnection)
|
||||
@ -47,4 +47,4 @@ while 1==1:
|
||||
|
||||
MyConection.Flush();
|
||||
time.sleep(1)
|
||||
print "loop"
|
||||
print("loop")
|
||||
|
Loading…
x
Reference in New Issue
Block a user