Hello i have a byte file, that fill a vb6 type like:
Type prog_real
codice As String * 12'hsg
denom As String * 24'oo
codprof As String * 12 'ljio
note As String * 100
programmer As String * 11
Out As Integer
b_out As Byte'TRUE = Se
We are searching for someone that can develop a python program for use
servomotor for automotive.
--
https://mail.python.org/mailman/listinfo/python-list
Thanks for your reply
Is the latter, can you explain how i can do it.
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
Hello i need to this
class Form(QWidget, Ui_Form):
"""
Class documentation goes here.
"""
def __init__(self, parent=None):
"""
Constructor
@param parent reference to the parent widget
@type QWidget
"""
super(Form, self).__ini
thanks
--
https://mail.python.org/mailman/listinfo/python-list
I get () missing 1 required positional argument: 's'
--
https://mail.python.org/mailman/listinfo/python-list
Hello i hope that yo can reply to this question also if the argument is pyqt
i have a simple test:
def start_timer(self):
self.timer = QTimer()
testo = 'pressed'
self.timer.singleShot(1000, self.metto_testo)
def test(self, testo):
self.lineEdit.setText(testo)
Hello i'm not sure that is the right group but i try
i use pyqt5 with eric
i have two form in the first form i have add :
from form_two import Form_two
and for pass varible to second form i have add in the function
def test(self)
self.ft= Form_two() #so i can acces to Object in form_two
se
thanks for the reply i have resolve with the r'.'
i have another question on linux i write cp -Ruv source destination
There is one way to do it in python?
with shutil there is copythree but if the dest dir exist he give back an error.
Can you give me some ideas
Thanks
Luca
--
https://ma
Hello i'm under windows, i have to write a file from my computer to a local
server like taht "\\DOCUMENTALE\my_folder\".
How i have to proceed ?
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
helo i have this form how i can install the event filter:
Class Form(QWidget, Ui_Form):
"""
Class documentation goes here.
"""
def __init__(self, parent = None):
"""
Constructor
"""
QWidget.__init__(self, parent)
self.setupUi(self)
Thanks
--
hello i try to install matplotlib on osx 10.6 , i have also installed
freetype libpng and numpy but i get this error:
BUILDING MATPLOTLIB
matplotlib: 1.1.0
python: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC
4.2.1 (Apple Inc. build 5646)]
I have pyc file written with python 2.6.5 and i need to return to py
file, can you give me some ideas tools script etc.
Luca
--
http://mail.python.org/mailman/listinfo/python-list
hello i'm working with eric, running a program eric crash and when i
try to open my project again with eric i see that myproject.py is
deleted, but my project is still running there is a way to find
myprogram.py file aving it in execution?
--
http://mail.python.org/mailman/listinfo/python-list
hello i have this:
def mytest(self):
for a in xrange(self.tableWidget.rowCount()):
self.combo_test = QtGui.QComboBox()
self.connect(self.combo_test,
QtCore.SIGNAL("currentIndexChanged(int)"), self.metto_test)
self.combo_test.addItems(self.lista_def)
ciao a tutti
sniffando i dati del protocollo irc con wireshark noto che a un certo
punto per il resume di un trasferimento un noto programma manda questa
stringa:
PRIVMSG Ex|testtrasf|001 :\001DCC RESUME prova_trasferimento.pdf 58772
5016204\001
a questo punto il server risponde.
Utilizzando i soc
Hello i try to install pyvisa under winxp sp3
i get this error:
home_dir =os.environ['HOME']
return self.data[key.upper()]
key error : 'HOME'
i have installed a lot of tyme pyvisa and this is the first time that
i get this error.
Thanks
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello i have write this but i not able to connect the emit of the
class Socket to the Form class, can you help me?
class Socket(QtNetwork.QTcpSocket):
def __init__(self, parent=None):
super(Socket, self).__init__(parent)
self.connect(self, QtCore.SIGNAL("readyRead()"),
self.leg
Hello i have also write to pyqt mailing list but maybe you can help me
to solve this question:
I have write a tcpserver but wheni try to read by the signal
readyRead() e get the error
this the part of the program:
def nuova_connessione(self):
print 'Nuova connessione'
On 1 Lug, 10:16, Mithrandir
wrote:
> luca72 wrote in news:abfb7720-6132-4b7b-8084-
> 5c1a48164...@y11g2000yqm.googlegroups.com:
>
> > hello
> > with webbrowser i open the html or php etc page, how i can save the
> > opened page with python?
>
> > Thanks
hello
with webbrowser i open the html or php etc page, how i can save the
opened page with python?
Thanks
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello
Has anyone used pysms can you tell me with wich gsm module it works?
Thanks
Luca
--
http://mail.python.org/mailman/listinfo/python-list
i attach some part of the server so maybe you can help me to
understand :
Packet description (before encryption)
Messages sent back and forth between newcamd and a cardserver always
consist of
a three byte header and (optional) data bytes. The header always
starts with a
command tag byte. This i
i get a string from a web server and i save it in to a file, that i
open the file and i read the string:
the string looks like :
http://lhti.gs/JKBTYD
after the read i use webbrowser open (sting), but i get the error
because at the end of the string are added '%0D%0A', and if i ask for
the len of t
On 21 Apr, 20:42, John Nagle wrote:
> luca72 wrote:
> > Hello i have this question :
> > i connect to the server in this way:
> > sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
> > sock.connect(('192.168.1.11',11502))
> > rcv = sock.recv(8124)
&
Hello i have this question :
i connect to the server in this way:
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect(('192.168.1.11',11502))
rcv = sock.recv(8124)
here i get 14 random bytes , in a string with strange chars like :
¬¨^.á‹•Ò
a„ãj
I think because sock.recv return a st
On 20 Apr, 19:38, Peter Otten <__pete...@web.de> wrote:
> luca72 wrote:
> > Hello i have to do this :
> > glibc crypt() function, using salt $1$abcdefgh$
>
> > cryptPw = crypt(plainPw, "$1$abcdefgh$")
Thanks
The result is correct i obtain the same with cty
Hello i have to do this :
glibc crypt() function, using salt $1$abcdefgh$
cryptPw = crypt(plainPw, "$1$abcdefgh$")
I can do it in python, with package i need?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Apr, 19:10, luca72 wrote:
> Hello i have a dvb decoder with enigma2 inside, The enigma2 plugin can
> be made with python.
> In my plugin i have to use pyserial, but in the decoder the python2.5
> reply in this way:
> r...@bm750:/var/pyserial-2.5-rc2# python setup.py inst
Hello i have a dvb decoder with enigma2 inside, The enigma2 plugin can
be made with python.
In my plugin i have to use pyserial, but in the decoder the python2.5
reply in this way:
r...@bm750:/var/pyserial-2.5-rc2# python setup.py install
Traceback (most recent call last):
File "setup.py", line 8
Sorry for my stupid question if i have to load module from a folder i
have to append it to the sys path the folder?
ex:
if my folder module is /home/lucak904/Scrivania/Luca/enigma2
i do this :
import sys
sys.path.append('/home/lucak904/Scrivania/Luca/enigma2')
If this is correct why when i write:
I have a bin file that i read as:
in_file = open('primo.ske', 'rb')
leggo = luca.readlines()
i get a list like :
['\x00\x80p\x8b\x00\x00\x01\x19\x9b\x11\xa1\xa1\x1f\xc9\x12\xaf\x81!
\x84\x01\x00\x01\x01\x02\xff\xff\x80\x01\x03\xb0\x01\x01\x10m\x7f\n',
etc...]
but if i try to print luca[0]
i get
On 5 Dic, 03:06, Carl Banks wrote:
> On Dec 4, 3:44 pm, luca72 wrote:
>
>
>
> > On 5 Dic, 00:14, luca72 wrote:
>
> > > On 5 Dic, 00:03, luca72 wrote:
>
> > > > On 4 Dic, 23:23, Mike Driscoll wrote:
>
> > > > > On Dec 4, 3:50 pm,
On 5 Dic, 00:14, luca72 wrote:
> On 5 Dic, 00:03, luca72 wrote:
>
>
>
> > On 4 Dic, 23:23, Mike Driscoll wrote:
>
> > > On Dec 4, 3:50 pm, luca72 wrote:
>
> > > > Hello i'm using subprocess in this way:
> > > > self.luca = subpro
On 5 Dic, 00:03, luca72 wrote:
> On 4 Dic, 23:23, Mike Driscoll wrote:
>
>
>
> > On Dec 4, 3:50 pm, luca72 wrote:
>
> > > Hello i'm using subprocess in this way:
> > > self.luca = subprocess.Popen(['/usr/bin/
> > > dvbtune
On 4 Dic, 23:23, Mike Driscoll wrote:
> On Dec 4, 3:50 pm, luca72 wrote:
>
> > Hello i'm using subprocess in this way:
> > self.luca = subprocess.Popen(['/usr/bin/
> > dvbtune'+frase_sint],shell=True, stdout=self.f_s_l,stderr=self.f_s_e )
>
> >
Hello i'm using subprocess in this way:
self.luca = subprocess.Popen(['/usr/bin/
dvbtune'+frase_sint],shell=True, stdout=self.f_s_l,stderr=self.f_s_e )
then i kill:
self.luca.Kill()
but the process is still active and the file self.f_s_l increase it
size because the process is not killed.
How i
hello i try to use the python-dvb3 bindings, but i have some problem:
fe = dvb3.frontend.Frontend(0)
type = tipo_1 = fe.get_dvbtype()
now i need to set the parameters
parametri = dvb3.frontend.QPSKParameters(frequency=frequency,
inversion=2 , symbol_rate=27500, fec_inner=9)
but when i use
fe.set_f
i have checked and pyscard accept also the decimal notation,
Thanks
Luca
On 27 Nov, 10:38, Lie Ryan wrote:
> On 11/27/2009 8:28 PM, luca72 wrote:
>
> > i'm using pyscard
>
> > and for send a command he need a list like this:
>
> > cmd = [0xdd,0xff, etc]
>
i'm using pyscard
and for send a command he need a list like this:
cmd = [0xdd,0xff, etc]
the problem is that i get a text
like dd
and i need to trasform it in 0xdd for the list and if i use hex i have
a sting that is not what i need
Luca
On 27 Nov, 10:22, Ben Finney wrote:
> luca72
hello i have a problem
i have this
str = 'D3'
and i need to trasform in 0xd3 type int and not type string how i can
do this?
if i do
hex(int(str,16) ) i obtain a string and this is not what i need.
thanks Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello but find_library find only the lib. but if i need to load from a
list of lib how i have to do.
My proble is that i have 5 lib (a,b,c,d,e), if i load the a i get lib
b not found, if for first i load the b and than the a i get the same
error how i have to proceed.
Thanks
Luca
--
http://mail
Can you tell me how load a list of library
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for your reply.
I have another question i can load a list of library?
Thanks
Luca
--
http://mail.python.org/mailman/listinfo/python-list
There is a command for ctypes that help me to know the entry points
inside a library.
Thanks Luca
--
http://mail.python.org/mailman/listinfo/python-list
hello i have this api
PREF0 short usb_tc08_get_single (
short handle,
float * temp,
short * overflow_flags,
short units);
this is a sample program made in c
int main(void)
{
short handle = 0; /* The handle to a TC-08 returned by
usb_tc08_open_unit() */
char selectio
can you explain how to use this function :
this is the api documentation :
PREF0 short usb_tc08_get_single (
short handle,
float * temp,
short * overflow_flags,
short units);
This is the sample made in c:
int main(void)
{
short handle = 0; /* The handle to a TC-08 returned
hello i'm using ctypes
i have this c function
PREF0 short usb_tc08_get_single (
short handle,
float * temp,
short * overflow_flags,
short units);
where :
nt main(void)
{
short handle = 0; /* The handle to a TC-08 returned by
usb_tc08_open_unit() */
char selection =
hello i'm writing an irc client, i use for encoding the utf-8 but i
never see all the typed sign in the correct way, anyone know the
standard encodind for the irc channels?
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Many thanks for your help
I have also find the correct socket function:
ip 1578568204
ip = socket.inet_aton(ip)
ip_dot = socket.inet_ntoa(ip)
Thanks Luca
On 20 Nov, 12:36, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Hello i have this ip 1578568204
>
> > how socket function i can have the ip dotted
Hello i have this ip 1578568204
how socket function i can have the ip dotted-quad string?
i have try socket.inet_aton get no error but only this ^ETB FF
Thanks luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello
i try to use cxfreeze under linux with a easy project made with qt i
run this :
cxfreeze --install-dir=dist main.py
and i get the error
ImportError: No module named PyQt4._qt
so i try : cxfreeze --install-dir=dist --include-modules='PyQt4._qt'
main.py
but i get the same error
i try also inc
hello
Another stupit question instead of use
sito = urllib.urlopen('http://www.prova.com/')
esamino = BeautifulSoup(sito)
i do
sito = urllib.urlopen('http://onlygame.helloweb.eu/')
file_sito = open('sito.html', 'wb')
for line in sito :
file_sito.write(line)
file_sito.close()
how can i pa
the arror are:
>>> Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/eric4/DebugClients/Python/
DebugClientBase.py", line 1006, in __unhandled_exception
self.mainThread.user_exception(None, (exctype,excval,exctb), 1)
File "/usr/lib/python2.5
Hello Again
the code is this
# -*- coding: ISO-8859-1 -*-
from BeautifulSoup import BeautifulSoup
import urllib
sito = urllib.urlopen('http://text.net/')
esamino = BeautifulSoup(sito)
luca = esamino.findAll('tr', align='center')
lunghezza = len(luca)
messaggio_per_scar = open('me', 'wb')
file_rice
On 30 Ott, 10:27, luca72 <[EMAIL PROTECTED]> wrote:
> Hy the code is this:
>
> Pok\xe9mon
>
> Luca
Sorry is the é
--
http://mail.python.org/mailman/listinfo/python-list
Hy the code is this:
Pok\xe9mon
Luca
--
http://mail.python.org/mailman/listinfo/python-list
hello i have this problem:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 8: ordinal not in range(128)
Generally i solve the problem inserting :
# -*- coding: ISO-8859-1 -*-
at the top of the file but now he don't work can you help me
thanks
Luca
--
http://mail.pytho
Hello
I try to use beautifulsoup
i have this:
sito = urllib.urlopen('http://www.prova.com/')
esamino = BeautifulSoup(sito)
luca = esamino.findAll('tr', align='center')
print luca[0]
>>>href="#">#144.4MB>align="left"> Pc-prova.rar
I need to get the following information:
1)Only|G|BoT|05
2)#1
3)4
Hello
i have installed xchat on suse11 i see that there is the possibility
to use python for make some script, i see also that the python
interface is loaded, but when in python i type import xchat i get that
the module don't exist.
where is the module?
I try also to ask in the xchat forum but i g
No i haven't install lino
but if frmp the python of this computer i make import cherrypy2 i
import it without problem this is the python path:
[EMAIL PROTECTED]:~> python
Python 2.5.1 (r251:54863, Jan 10 2008, 18:00:49)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "l
On 6 Giu, 10:31, Chris <[EMAIL PROTECTED]> wrote:
> On Jun 6, 10:22 am, luca72 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello i can't import cherrypy2 but i don't know why this is the sys
> > path:
>
> > '', '/home/pirataja/opo.
Hello i can't import cherrypy2 but i don't know why this is the sys
path:
'', '/home/pirataja/opo.net/python/lib/python2.5/site-packages/
setuptools-0.6c7-py2.5.egg', '/home/pirataja/opo.net/python/lib/
python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg', '/home/pirataja/
opo.net/python/lib/pyth
Hello
Can you tell me where i can find some example that's show how to open
an existing oocalc document and get some data from it?
Thanks Luca
--
http://mail.python.org/mailman/listinfo/python-list
No one can help pls
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello i have made anly one test like this:
from time import sleep
barra = QtGui.QProgressBar()
barra.setMinimum(0)
barra.setMaximum(10)
for a in range(10):
sleep(1)
barra.setValue(a)
app.processEvents()
But the bar remain fix to 0% don't increase.
can you tell me how t
Hello i use under linux cx-freeze
My python program import a small module were i set the encoding to iso
8859-1.
When i make the executable with cxfreeze and i run it i get this
error:
Traceback (most recent call last):
File "/home/luca72/Desktop/Luca/python/cx_Freeze-3.0.3/initsc
Hello at all
I have made this small tests:
this is the form implementation:
# -*- coding: utf-8 -*-
"""
Module implementing Form.
"""
from PyQt4.QtGui import QWidget
from PyQt4.QtCore import pyqtSignature
from PyQt4 import *
from disegni import PictureFrame
from Ui_form import Ui_Form
class F
Hello
i have python2.5 with sip4.6 installed on a linux machine, i need to
install sip4.7 but i get a lot of error like this:
sip.h:525: error: expected specifier-qualifier-list before
'PyMethodDef'
sip.h:609: error: expected specifier-qualifier-list before
'sipForceConvertToFunc'
sip.h:666: error
Hello at all i have a problem with the csv module, really i don't
undestud the writerows:
if i have to write only one row i do as follow:
def scrivo_csv(self):
import csv
q_righe = self.tableWidget.rowCount()
for row in range(q_righe) :
e_vuota = self.tableWidge
Many thanks
I will try with Jython
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello and thanks for your answer, the unify db is on unix-sco and i
need to connect with linux machine with python
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello
How i can use to connect to a unify els database with python
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello
using qt3 i do the follow for paint some line in a frame
gr = QPainter(self.frame3)
gr drawLine(30,10,30,490)
and the line is draw.
Whit qt4 :
gr = QtGui.QPainter(self.frame3)
#gr.setPen(QtGui.QPen(QtCore.Qt.black, 1, QtCore.Qt.SolidLine))
gr.drawLine(30,10,30,490)
and nothing is draw bu
Hello
there is someone that have experience with the ni-pci-6010 Analog
Input Multifunction DAQ and python?
--
http://mail.python.org/mailman/listinfo/python-list
Hello
I make this code:
row = self.tableWidget.rowCount()
for a in range(row):
self.tableWidget.item(row, 0).setFlags(Qt.IsSelectable)
i have this erroror :
global name Qt is not definied
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
hello again
i have another stupid question.
How i can set a qpushbutton invisible?
thanks Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello at all
I try to use qt , but i have problem, i don't find the command like
wx.Yield() in wx or doevent in vb.
Can you tell me the same command in qt
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello at all:
if i have one file written in binary mode, how can i append others
binary data to this file after the its closure.
ex
my_file = open('blabal', 'wb')
then i write something and then
my_file.close()
now if i need to open it again and append other binary data how can i
proceed?
Regards
Hello at all.
I need to do a real time plot where on the frame i have this like limit
line:
import math
dati = []
for freq in range(int(freqiniziale), (int(freqfinale )+ 1)):
forza = float(massa) * ((2*math.pi*freq)**2)/10
dati.append(forza)
a
Hello again
You know if is possible save all the encryption process in a text file
and not only the result?
This will be wery helpful for compare the pycrypto step by step
operation, with the hand made operation and see where hand made make a
mistake
--
http://mail.python.org/mailman/listinfo/p
> In [26]:import binascii
>
> In [27]:binascii.unhexlify('ea523a664dabaa4476d31226a1e3bab0')
> Out[27]:'\xeaR:fM\xab\xaaDv\xd3\x12&\xa1\xe3\xba\xb0'
>
> Ciao,
> Marc 'BlackJack' Rintsch
Ciao Marc
Grazie Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hello again i have solve doing this:
from Crypto.Cipher import AES
stri=(chr(int('9b',16))+chr(int('d3',16))+chr(int('2d',16))+chr(int('24',16))+chr(int('af',16))+chr(int('c9',16))+chr(int('e9',16))+chr(int('d7',16))+chr(int('46',16))+chr(int('69',16))+chr(int('71',16))+chr(int('32',16))+chr(int(
Excuse me again,
If the string is not a sting but hex number how i have to proced :
look this page:
http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-AES.html
Regards Luca
--
http://mail.python.org/mailman/listinfo/python-list
Thanks
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello
I have to make an easy operation but reading the pycrypto doc. a never
see AES example
I have to cript this key 'ea523a664dabaa4476d31226a1e3bab0' with the
AES.
Can you help me for make it with pycrypto
Regards Luca
--
http://mail.python.org/mailman/listinfo/python-list
Thanks
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Is it possible or i must use odbc?
Rergards Luca
--
http://mail.python.org/mailman/listinfo/python-list
I have solve in this way i'm sure it's not the best, but it works:
lista1leggi = open('/lista1.txt', 'r')
mt = lista1leggi.readlines()
lunghezzamt = len(mt)
lucianino = 0
while lucianino < (lunghezzamt - 1):
if mt[lucianino] == '\n':
del
Hello Frefrik
It works but sometimes it insert a blank row so the file is like:
item1
item2
item3
item4
etc..
I don't inderstand why.
But supposing that we can't solve this, is it possible to delete blanlk
items in the checkListBox?
--
http://mail.python.org/mailman/listinfo/python-list
Thank Fredrik
I try and then i will inform you
Luca
--
http://mail.python.org/mailman/listinfo/python-list
i have again one simple problem:
the script is this:
def output(self):
global lista2
lista2 = open('/lista2', 'w')
iteminlista2 = self.checkListBox2.GetStrings()
lista2.writelines(iteminlista2)
def input1(self):
lista2leggi = open('/lista2', 'r')
sorry
appenditems
--
http://mail.python.org/mailman/listinfo/python-list
I have solved with appen.items()
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Sorry Philippe
is a Wx.checklistbox
--
http://mail.python.org/mailman/listinfo/python-list
Hello
I write one file using:...(i think that is ok for write all the
lines of my list)
luca = open('/tmp/luca', 'w')
luca.writelines(list)
when i open the application again i use:
leggi = open('/tmp/luca', 'r')
leggi.readlines()
How can i store this line in to a wx.checkbox.
Thanks Luc
Thanks Peter
Regards
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Thanks a lot Luciano
Regards Luca
--
http://mail.python.org/mailman/listinfo/python-list
Hello here is the code:
from win32com.client import Dispatch
packing = Dispatch("Excel.Application")
packing.Visible = 1
packing.Workbooks.Add()
#packing.Worksheets.Add()
packing.ActiveSheet.Range("A1").ColumnWidth = 8
packing.ActiveSheet.Ran
Dear All
Thanks for your help, and patience.
Now all works in the right mode.
Belive me for a person of my age and my background ( i'm a physics, but
at my time no computer was allowed) all that for you is simple, is not
for me.
So many Thanks and Regards
Luca
--
http://mail.python.org/mailman/
1 - 100 of 114 matches
Mail list logo