Re: Need to open an Url and display it in a window created using Python win extensions
Can you post your basic wx part code? -- http://mail.python.org/mailman/listinfo/python-list
Re: Best way to protect my new commercial software.
Well, I think my question was a programming question not a copyright question. I expect a nice script in 15-35 lines that protects my software from working on another machine. I don't want best protection method available, like flexlm or etc. My software is some kind of business secret and working it in another company means that other companies can do what we can. Copyright means nothing here (I live in Iran!). We produce tv animation and commercials and if a company use it, we even can't aware of it. Ireally hope for a real post. but thank all of you for reply. sorry for my bad english. -- http://mail.python.org/mailman/listinfo/python-list
A new group for MAYA - PYTHON lovers.
New mailing list for Maya/Python users. http://groups.google.com/group/python_inside_maya -- http://mail.python.org/mailman/listinfo/python-list
Py2exe and Multi Treading problem.
Here is my script #** #** import threading import socket def openSocket(portNum): mySocket = socket.socket ( socket.AF_INET, socket.SOCK_STREAM ) mySocket.bind ( ( '', portNum ) ) mySocket.listen ( 1 ) channel, details = mySocket.accept() msg = channel.recv(4096) class CmdPortThread( threading.Thread ): def run( self ): openSocket(6000) def fakeCommandPort(): CmdPortThread().start() fakeCommandPort() #** #** If works perfect with python 2.5.2. Now I want to convert it to standalone program. but the .exe file fails to run without any error. If I cal CmdPortThread without Trading, It works perfect. What did I miss here? My setup.py is standard without any include or excludes. Should I include something in setup.py? I am not a py2exe newbie but I'll appreciate detailed descriptions. -- http://mail.python.org/mailman/listinfo/python-list
Re: Py2exe and Multi Treading problem.
NO it dont work. If I remove threading part, it works like a charm. Any Idea? -- http://mail.python.org/mailman/listinfo/python-list
Re: Py2exe and Multi Treading problem.
On Mar 12, 10:35 pm, Thin Myrna <[EMAIL PROTECTED]> wrote: > Farsheed Ashouri wrote: > > NO it dont work. If I remove threading part, it works like a charm. > > Any Idea? > > Of course it does then. Try to join the thread or do something else to > prevent the non-threading part to exit prematurely. > > HTH > Thin Thanks, I got it. Very useful for me. Cheers. -- http://mail.python.org/mailman/listinfo/python-list
Local python web server problem
Hi everyone. I have started to develop a web base software for renderfarm managing. I run the cherrypy hello world! example and when I visit 127.0.0.1:8080 on firefox, a nice "Hello World" appears. I am on ubuntu and my ip in local network is 192.168.100.18 but when I visit 192.168.100.18, there is another page: "It Works!". What is "It Works!"? and when I type 192.168.100.18:8080 in another local pc, the page didn't load? Sorry I am newbie in network area, so I have these two questions: 1- How can I serve my page in local network? 2- what is "It Works!" in 192.168.100.18? we have 192.168.100.<10-70> . no pc has this but mine!!! 3- Could you please explain me or at least point me to the right direction of making little local web server, localhost? 4- How can I access to the server that serves web page in 56566 port? I try 192.168.100.18:56566 but the page could not load. I can ping 192.168.100.18 but I can't load web pages from it. Why? Thanks and sorry for my bad English. -- http://mail.python.org/mailman/listinfo/python-list
Re: Local python web server problem
Thanks guys, Really appreciate your help. I am trying to solve the problem and will keep you posted when I found a solution. Farsheed Ashouri, Tehran, Iran -- http://mail.python.org/mailman/listinfo/python-list
Uploading big files wit cherrypy
I use this code to upload using cherrypy: #Code Start== class NoteServer(object): _cp_config = { 'tools.sessions.on': True } def index(self): return """ filename: Pars Studios, 2009 """ #~ return compose().run() index.exposed = True def upload(self, myFile): out = """ myFile length: %s myFile filename: %s myFile mime-type: %s """ # Although this just counts the file length, it demonstrates # how to read large files in chunks instead of all at once. # CherryPy uses Python's cgi module to read the uploaded file # into a temporary file; myFile.file.read reads from that. size = 0 allData='' while True: data = myFile.file.read(8192) allData+=data if not data: break size += len(data) savedFile=open(myFile.filename, 'wb') savedFile.write(allData) savedFile.close() return out % (size, myFile.filename, myFile.type) #~ return allData upload.exposed = True #Code End But I couldn't upload files bigger than 100Mb. Why and what is workaround? Thanks in advanced. -- http://mail.python.org/mailman/listinfo/python-list
wxpython and IEHtmlWindow, Focus Problem.
Hi everyone. I create a little browser with wxpython and IEHtmlWindow. But I have a little problem here. When I press enter in the html page, The focus goes to another panel. Why this happens? I want to load a html page and it have textares and user should able to press enter inside html page. This is the code for creating it: #===Code Begin == class PageOne(wx.Panel): def __init__(self, parent): wx.Panel.__init__( self, parent, -1, style=wx.TAB_TRAVERSAL|wx.CLIP_CHILDREN| wx.NO_FULL_REPAINT_ON_RESIZE ) self.sizer = wx.BoxSizer(wx.HORIZONTAL) import wx.lib.iewinas iewin a = iewin.IEHtmlWindow(self, -1 ) #a.LoadUrl('file:///E:/Ducuments/EL%20Software%20Project/ mainSoft/xmlParser/HTML/learn/less2.html') self.sizer.Add(a, 3, wx.EXPAND,1) self.SetSizer(self.sizer) #self.Bind(wx.EVT_TEXT_ENTER , self.OnKeyPress, a) config.CurrentNotebook = a #===Code End== Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list