UML from py sources

2006-03-22 Thread Sbaush
Hi all, i'm searching for a tool that draw the UML of a python project. Have you idea about the best way to do it? I prefer a Linux tool, but it's the same, i have only a little bit of time... -- Sbaush -- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

UML from py sources

2006-03-22 Thread Sbaush
Hi all, i'm searching for a tool that draw the UML of a python project. Have you idea about the best way to do it? I prefer a Linux tool, but it's the same, i have only a little bit of time...-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Re: Fail in sending UDP packet

2006-02-23 Thread Sbaush
No one of you has a idea??On 2/23/06, Sbaush <[EMAIL PROTECTED]> wrote: Hi all. I've attached my SendReceive class. I have e a big problem! My program create a packet, then call the send function to send this. the first time the packet is not sent, then it works perfectly!WHY??? Ha

Fail in sending UDP packet

2006-02-23 Thread Sbaush
Hi all. I've attached my SendReceive class. I have e a big problem! My program create a packet, then call the send function to send this. the first time the packet is not sent, then it works perfectly!WHY??? Have you idea?? -- Sbaush from socket import * from struct import * from string i

Re: editor for Python on Linux

2006-02-21 Thread Sbaush
ss.com.brPydev Extensionshttp://www.fabioz.com/pydevPyDev - Python Development Enviroment for Eclipse http://pydev.sf.nethttp://pydev.blogspot.com--http://mail.python.org/mailman/listinfo/python-list -- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Delete a file

2006-02-17 Thread Sbaush
Hi.In my application i create a PNG image and i view it in a frame.How can delete it from my python code?Bye...-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

PyDot problem

2006-02-15 Thread Sbaush
t;10.0.0.2","10.0.0.9"),(" 10.0.0.2","10.0.0.6"),("10.0.0.9","10.0.0.8"),("10.0.0.6"," 10.0.0.7") ]g=pydot.graph_from_edges(edges,directed=True) g.write_png('route.png')-- Sbaush route.png Description: PNG image route2.png Description: PNG image -- http://mail.python.org/mailman/listinfo/python-list

problem in ElementTree SubElement

2006-02-06 Thread Sbaush
Hi all. I would get this element in xml:I have write this: date=ET.SubElement(idsreq,"date")        date.set("month",month)        date.set("day",day)but i get this: The attributes are not in my order!!how i can get the attributes in right order??? Thanks all.-- Sba

Re: [wxPython-users] Problem in threading

2006-02-06 Thread Sbaush
ResponseEvent(xml=xmlresponse,    host=hostfrom))def updateModel(self, Type):threading.Thread(target=self._updateModel,  args=(Type,)).start()def GotResponse(self, evt): self.iptResponse.run(evt.xml, xml.host)... - Josiah-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Re: Control if a input text is IP

2006-02-02 Thread Sbaush
thanks!! your ipcheck is perfect fo me!!2006/2/3, Fredrik Lundh <[EMAIL PROTECTED]>: Sbaush wrote:> My app has in input an ip address in IPv4 notation.> is there a function that control if input is a string in IPv4 notation?here's one way to do it:def ipcheck(s):try:

Control if a input text is IP

2006-02-02 Thread Sbaush
Hi all.My app has in input an ip address in IPv4 notation. is there a function that control if input is a string in IPv4 notation?Thanks all.bye-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Problem in threading

2006-02-02 Thread Sbaush
ult.Have you idea how can i do it and how can i apply thread to it?Thanks all!-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Represent XML

2006-01-27 Thread Sbaush
Hi all.I attach to you a example XML file to parse and the demo of my objective.The iptRequest.xml is the file to parse in one mode. I can't parse it.The demo.py is my ideal result, manually built, that should be built by parsing the XML. How can i do to do it?Bye all! #!/usr/bin/env python # -*- c

Represent XML

2006-01-27 Thread Sbaush
Hi all.I attach to you a example XML file to parse and the demo of my objective.The iptRequest.xml is the file to parse in one mode. I can't parse it.The demo.py is my ideal result, manually built, that should be built by parsing the XML. How can i do to do it?Bye all! #!/usr/bin/env python # -*- c

Re: Send a particular packet with this python client

2006-01-24 Thread Sbaush
lenght; // sizeof(payload) = sizeof(int) + strlen(payload)     unsigned char payload[PAYLOAD_LENGHT]; // the xml string} __attribute__ ((packed)); How can i do it in python?2006/1/24, Sbaush < [EMAIL PROTECTED]>:I can specify the question, so you can request me easily... The int should be an inte

Re: Send a particular packet with this python client

2006-01-24 Thread Sbaush
I can specify the question, so you can request me easily...The int should be an integer of 32 bit fixed. This is total packet size. The string should contain XML.In this example the string is taken from keyboard, so for example. Thanks all for your helps...2006/1/24, Sbaush <[EMAIL PROTECTED]&g

Send a particular packet with this python client

2006-01-24 Thread Sbaush
ot;Sending message '",data,"'." # Close socket UDPSock.close()-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Help] HOWTO Send a string???

2006-01-24 Thread Sbaush
d be implemented with separated thread. A> thread send/receive while another indipendent thread do same. >> Have you any ideas to do it more simply as possible?> What is the best way to di it??> What is the best way to thread programming in

Re: HOWTO Send a string???

2006-01-23 Thread Sbaush
oh thanks i read the howto.Why i should use pyro? What is in poor words?2006/1/23, Martin Franklin <[EMAIL PROTECTED] >:Sbaush wrote:> Hi all.> In my application I have to do implement a lot of networking in python > My application can create with a GUI a XML file in a str

HOWTO Send a string???

2006-01-23 Thread Sbaush
do it more simply as possible?What is the best way to di it??What is the best way to thread programming in python?Thanks all for your help with me!-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Re: [XML-SIG] Howto create this XML string?

2006-01-22 Thread Sbaush
Thanks all, i've perfectly undestand the way. Thanks again.2006/1/19, Luis Miguel Morillas <[EMAIL PROTECTED]>: 2006/1/19, Sbaush <[EMAIL PROTECTED]>: Hi all.I've this XML:                127.0.0.1"/>            How can i write th

Re: Howto create this XML string?

2006-01-20 Thread Sbaush
in the elementtree implementation the tostring function doesn't work with a tree, work only with an element. What is the way to put the tree in a string?2006/1/20, Fredrik Lundh < [EMAIL PROTECTED]>:Sbaush wrote:> Is possible to have the XML in a string (for example xmlstring) and

Howto create this XML string?

2006-01-20 Thread Sbaush
mode","INPUT")met=ET.SubElement(app,"method") met.set("type","GOOD") src="">src.set("address"," 127.0.0.1")act=ET.SubElement(app,"action") act.set("option","OK") tree = ET.ElementTree(root)-- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Howto create this XML string?

2006-01-19 Thread Sbaush
Hi all.I've this XML:                127.0.0.1"/>            How can i write this in a Python String? I would like use a xml.dom implementation and not a banal print...print...I can't do it... Is there anyone that can explain me what is the way?T

Dom or MiniDom example

2006-01-19 Thread Sbaush
Hi, i'm searching for a dom or a minidom examples. I'm building a GUI. This gui should create a XML string. What's the best way to implement this? Dom, minidom or another way?Thanks.-- Sbaush -- Sbaush -- http://mail.python.org/mailman/listinfo/python-list

Re: MVC Help

2006-01-17 Thread Sbaush
Thanks!!Is there a wx example? 2006/1/17, Fredrik Lundh <[EMAIL PROTECTED]>: "Sbaush" <[EMAIL PROTECTED]> wrote:> The View must be only the clickable button> The Control must be the event listener on the button> The Model must be the action of the button. >