I have recently come across something called a struct. I have googled this,
but have note found a good explanation. Can someone give me a good
definition or point me to a page that has one.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
I'm attempting to convert latitude and longitude coordinates from degrees
minutes and second to decimal form. I would like to go from:
N39 42 36.3 W77 42 51.5
to:
-77.739855,39.70
Does anyone know of a library or some existing out their to help with this
conversion?
--
http://mail.python.o
I'm attempting to convert latitude and longitude coordinates from degrees
minutes and second to decimal form. I would like to go from:
N39 42 36.3 W77 42 51.5
to:
-77.739855,39.70
Does anyone know of a library or some existing out their to help with this
conversion?
--
http://mail.python
Inside the method that you want to use the var prefix the first
instance with global. For example: global my_var. Then you can use the
var like normal in the method. Good luck
On Oct 28, 2009, at 20:50, mattofak wrote:
Hi All;
I'm new to Python and moving from C, which is probably a big
I'm attempting to add a menu bar to my Tkinter app. I can't figure out the
correct syntax. Can someone help? I get this error when I run the app:
Traceback (most recent call last):
File "tkgrid.py", line 26, in
app = App(root)
File "tkgrid.py", line 10, in __init__
menubar = Menu(mas
Philip,
PySide looks nice and you are right it is still very young. I'm still going
to give it a try. Thanks for your help.
On Sun, Oct 25, 2009 at 9:41 PM, Philip Semanchuk wrote:
>
> On Oct 25, 2009, at 8:39 PM, Ronn Ross wrote:
>
> I need to create a gui for python
I need to create a gui for python. I'm looking for something that is easy to
learn and cross platform. Any suggestions? If you have any good tutorials
please send along. Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Oct 24, 2009 at 4:53 PM, John Nagle wrote:
> Gabriel Genellina wrote:
>
>> En Fri, 23 Oct 2009 20:56:21 -0300, Ronn Ross
>> escribió:
>>
>>
>> I have tried setting the baud rate with no success. Also I'm using port
>>> #2
>>> b
Oct 2009 20:56:21 -0300, Ronn Ross
> escribió:
>
>
> I have tried setting the baud rate with no success. Also I'm using port #2
>> because I"m using a usb to serial cable.
>>
>
> Note that Serial(2) is known as COM3 in Windows, is it ok?
>
>
> --
&
I have tried setting the baud rate with no success. Also I'm using port #2
because I"m using a usb to serial cable.
On Fri, Oct 23, 2009 at 7:51 PM, Chris Rebert wrote:
> On Thu, Oct 22, 2009 at 4:43 PM, Ronn Ross wrote:
> > I'm using pySerial to connect to a serial p
I'm using pySerial to connect to a serial port (rs232) on a windows xp
machine. I'm using python interactive interpretor to interact with the
device. I type the following:
import serial
ser = serial.Serial(2)
ser.write("command")
But this does nothing to the control. I have been able to connect vi
I'm using pySerial to connect to a serial port (rs232) on a windows xp
machine. I'm using python interactive interpretor to interact with the
device. I type the following:
import serial
ser = serial.Serial(2)
ser.write("command")
But this does nothing to the control. I have been able to connect vi
Hello,
I'm using PyUSB 0.4.2 to interact with a Microsoft Sindwinder joystick. I'm
using python 2.6 on windows XP. With the code snippet below I'm able to find
usb device currently plugged into my computer. Now I would like to actually
tap into the data that to joystick is providing to the system.
Does anyone know where I can download a copy of PyUSB 1.0? I can only find
0.x versions on sourceforge. I'm following a tutorial that requires 1.0.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
I'm running Python 2.6 on windows. I'm install Pyusb and I'm having trouble
including the library in my script. Can someone point me in the right
direction to get this working or know of a good tutorial to help me out.
Best regards
--
http://mail.python.org/mailman/listinfo/python-list
I'm new to Python and would like to capture mouse movements. I envision
writing a script that will just write out the mouse movements in the term.
Is this possible? Can someone point me in the right direction?
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Aug 24, 2009 at 11:18 AM, Ronn Ross wrote:
>
>
> On Mon, Aug 24, 2009 at 10:43 AM, Albert Hopkins
> wrote:
>
>> On Mon, 2009-08-24 at 10:35 -0400, Ronn Ross wrote:
>> > I need to read a binary file. When I open it up in a text editor it is
>> >
I need to read a binary file. When I open it up in a text editor it is just
junk. Does Python have a class to help with this?
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Aug 21, 2009 at 2:26 PM, D'Arcy J.M. Cain wrote:
> On Fri, 21 Aug 2009 14:14:32 -0400
> Ronn Ross wrote:
> > I want to split it into two fields one with the date formatted like this:
> > -MM-DD 2009-08-02
> >
> > and the time to be 24 hour or m
I'm new to python and I'm getting a date time from a field in the database
that looks like this:
8/2/2009 8:36:16 AM (UTC)
I want to split it into two fields one with the date formatted like this:
-MM-DD 2009-08-02
and the time to be 24 hour or military time. How every you call it. Similar
t
On Wed, Aug 19, 2009 at 9:19 AM, Ronn Ross wrote:
> I was hoping that python would have a library to help me print my own bar
> codes? We will need labels in all sizes and most label printer just work
> with 1 or 2 sizes. I would like to just print a grid of different sizes on
> st
My company needs a small inventory management app. Does python have any
libraries to help with reading and writing bar codes?
--
http://mail.python.org/mailman/listinfo/python-list
I have a package i would like to store locally. If it is stored locally can
I do something like ' easy_install http://localhost/package ' ? Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jul 21, 2009 at 7:32 PM, Gabriel Genellina
wrote:
> En Tue, 21 Jul 2009 21:08:57 -0300, Ronn Ross
> escribió:
>
>
> Hello I'm trying to read an xml file using minidome. The xml looks like:
>>
>>
>> myProj
>> /here/
&g
Hello I'm trying to read an xml file using minidome. The xml looks like:
myProj
/here/
My code looks like so:
from xml.dom.minidom import parse
dom = parse("myfile.xml")
for node in dom.getElementsByTagName("project'):
print('name: %s, path: %s \n') % (node.childNodes[0]
How do you define a global variable in a class. I tried this with do
success:
class ClassName:
global_var = 1
def some_methos():
print global_var
This doesn't work. What am I doing wrong?
--
http://mail.python.org/mailman/listinfo/python-list
Hello all,
Created a python file that has a class and three methods. When I jump into
interactive mode I import like so:
from import
Now when I try to use a method from the class:
var1 = class.method()
It give me this error:
TypeError: unbound method must be called with
instance as first a
I'm attempting to write a bootstrap script for virtualenv. I just want to do
a couple of easy_install's after the environment is created. It was fairly
easy to create the script, but I can't figure out how to implement it. The
documentation was not of much help. Can someone please point me in the r
I'm attempting to write a bootstrap script for virtualenv. I just want to do
a couple of easy_install's after the environment is created. It was fairly
easy to create the script, but I can't figure out how to implement it. The
documentation was not of much help. Can someone please point me in the r
I have a simple application that has a glade file and a .py file. How would
I package that into an installer for Windows, Mac, and a deb file? Can
anyone point me in the right direction?
--
http://mail.python.org/mailman/listinfo/python-list
I'm looking to play around with RFID and Python. Can anyone offer any
suggestions on the cheap? I'm possibly looking for a starter kit.
--
http://mail.python.org/mailman/listinfo/python-list
I'm using Tkinter file selector to get a direcotry path. I'm using:
self.file = tkFileDialog.askdirectory(title="Please select your directory")
print file
but all it prints out is:
How would I print the directory path?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
I'm attempting to sort for the results of a dictionary. I would like to
short by the 'key' in ascending order. I have already made several attempts
using: sorted() and .sort().
Here is my loop:
for key,value in word_count.items():
print sorted(key), "=", value
Thanks
--
http://mail.py
I'm using the following to scrape a web page: import urllib
f = urllib.urlopen("http://www.google.com";)
s = f.read()
It is working, but it's returning the source of the page. Is there anyway I
can get almost a screen capture of the page?
Dankon
--
http://mail.python.org/mailman/listinfo/python-
I'm trying to print a simple string to a network printer. This is what I
have so far:
import os
printer_path = "192.168.200.139"
p = os.popen(printer_path, 'w')
p.write("this is a printer test")
p.close()
I'm trying to call the printer from its IP address. When I run the script I
get:
sh: 192.16
run this it give me an error:
SyntaxError: Non-ASCII character '\xc5' in file vortaro.py on line
33, but no encoding declared;
is there a way to parse Non-ASCII characters in python?
Thanks in advance,
Ronn
--
http://mail.python.org/mailman/listinfo/python-list
'm running Unbuntu Linux.
Thanks,
Ronn
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I download the source for
--
http://mail.python.org/mailman/listinfo/python-list
This is my first post and I'm new to Python. How would someone go about
adding keywords to Python? It would be great to add support for Esperanto
keywords in the language instead of English being the only option.
thx
--
http://mail.python.org/mailman/listinfo/python-list
39 matches
Mail list logo