I'm using the latest Raspbian on a Raspberry Pi and I'd like to start IDLE so
that it uses Geany instead of Leafpad. This seems at first sight a trivial task:
Perform a rightmouse click on the IDLE-icon--Open with: Geany (in stead of the
default Leafpad)--OK
LXTerminal--lxpanelctl restart
Dear all,
I made a simple gui with tkinter. I can imagine there are things which I
did which are not optimal. So what I ask is to comment on my code
preferable with snippets of code which show how to do improve my code.
#!/usr/bin/env python
import Tkinter
import time
import RPi.GPIO as GPIO
Op vrijdag 17 januari 2014 22:40:42 UTC+1 schreef Terry Reedy:
On 1/17/2014 8:20 AM, Jean Dupont wrote:
Dear all,
I made a simple gui with tkinter. I can imagine there are things which I
did which are not optimal. So what I ask is to comment on my code
preferable with snippets
Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin:
On 18 January 2014 14:52, Jean Dupont jeandupont...@gmail.com wrote:
Thanks Peter and Terry Jan for the useful suggestions. One thing which I
find a bit weird: when asking for Python-help concerning raspberry pi code
Op maandag 20 januari 2014 07:24:31 UTC+1 schreef Chris Angelico:
On Mon, Jan 20, 2014 at 3:04 PM, Jean Dupont jeandupont...@gmail.com wrote:
I started a thread [newbie] starting geany from within idle does not
work both here and in the raspberry pi forum. I just wondered why I never
got
Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister:
On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote:
Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin:
On 18 January 2014 14:52, Jean Dupont jeandupont...@gmail.com wrote:
Thanks Peter and Terry Jan
Op woensdag 22 januari 2014 16:43:21 UTC+1 schreef Alister:
On Wed, 22 Jan 2014 06:45:53 -0800, Jean Dupont wrote:
Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister:
On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote:
Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar
Op woensdag 22 januari 2014 15:45:53 UTC+1 schreef Jean Dupont:
Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister:
On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote:
Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin:
On 18 January 2014 14:52, Jean Dupont
I'm looking for an efficient method to produce rows of tables like this:
for base 2
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
.
.
.
1 1 1 1
for base 3
0 0 0 0 0 0
0 0 0 0 0 1
0 0 0 0 0 2
0 0 0 0 1 0
0 0 0 0 1 1
0 0 0 0 1 2
.
.
2 2 2 2 2 2
As you can see the rows are always twice the size of the
Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten:
Jean Dupont wrote:
I'm looking for an efficient method to produce rows of tables like this:
for base 2
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
.
.
.
1 1 1 1
for base 3
0 0 0 0 0 0
0 0 0 0 0 1
0 0 0
Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las:
On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote:
Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten:
I'm looking for an efficient method to produce rows of tables like this:
jean
you can also try
Op zondag 2 februari 2014 19:07:38 UTC+1 schreef Roy Smith:
In article 515e582f-ed17-4d4e-9872-f07f1fda6...@googlegroups.com,
Jean Dupont jeandupont...@gmail.com wrote:
I'm looking for an efficient method to produce rows of tables like this:
for base 2
0 0 0 0
0 0 0 1
0 0 1 0
0
I'm looking at the way to address tuples
e.g.
tup2 = (1, 2, 3, 4, 5, 6, 7 );
As I found out indices start with 0 in Python, so
tup2[0] gives me 1, the first element in the tuple as expected
tup2[1] gives me 2, the second element in the tuple as expected
now here comes what surprises me:
Op maandag 3 februari 2014 18:06:46 UTC+1 schreef Rustom Mody:
On Monday, February 3, 2014 10:20:31 PM UTC+5:30, Jean Dupont wrote:
I'm looking at the way to address tuples
e.g.
tup2 = (1, 2, 3, 4, 5, 6, 7 );
As I found out indices start with 0 in Python, so
tup2[0] gives me 1
Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las:
On Monday, February 3, 2014 5:05:40 PM UTC+2, Jean Dupont wrote:
Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las:
On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote:
Op zondag 2 februari 2014 19:10:32
I have a list like this:
[1,2,3]
The argument of my function should be a repeated version e.g.
[1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times repeated
also)
what is the prefered method to realize this in Python?
any help would be really appreciated
kind regards,
jean
Op maandag 3 februari 2014 23:19:39 UTC+1 schreef Steven D'Aprano:
On Mon, 03 Feb 2014 13:36:24 -0800, Jean Dupont wrote:
I have a list like this:
[1,2,3]
The argument of my function should be a repeated version e.g.
[1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times
Op maandag 3 februari 2014 20:50:04 UTC+1 schreef Asaf Las:
On Monday, February 3, 2014 9:37:36 PM UTC+2, Jean Dupont wrote:
Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las:
Of course you don't have to, but I'm curious and learn well by examples
:-(
Hi Jean
Don't get me
I have some data which is presented in the following format to me:
+3.874693E-01,+9.999889E-03,+9.91E+37,+1.876595E+04,+3.994000E+04
I'm only interested in the first two fields i.e.
+3.874693E-01,+9.999889E-03
If I start python interactively I can separate the fields as follows:
I'd like to read in the output of a voltcraft vc960 voltmeter
connected to a usb-port.
I found the perl-script below but I'd like to accomplish the same with
python:
I guess I have to use the module serial but I don't know how I should
set the serial parameters so they are the same as in the
, 8, serial.PARITY_NONE, 1,
timeout=15)
print rs-232 parameters of Voltcraft: , ser2
print Opening + ser2.portstr
received=ser2.readline()
print received
print Goodbye, data logged in file:
print filename
ser2.close()
# Close file
voltdata.close()
On 2 feb, 21:57, Jean Dupont jeandupont
I need to set the following options I found in a Perl-script in Python for
serial communication with a device (a voltmeter):
$port-handshake(none);
$port-rts_active(0);
$port-dtr_active(1);
I have thus far the following statements but I think it does not set the above
parameters correctly:
I'd like to read in a stream of data which looks like this:
the device sends out a byte-string of 11 bytes roughly every second:
B0B0B0B0B03131B0B50D8A
B0B0B0B0B03131B0B50D8A
B0B0B031B63131B0310D8A
B0B034B3323432B3310D8A
B0B03237B53432B3310D8A
.
.
.
As you see every string is
On 7 feb, 06:07, Roy Smith r...@panix.com wrote:
In article
e84f3af4-da6d-4ae9-8974-54354ec16...@b18g2000vbz.googlegroups.com,
Jean Dupont jeandupont...@gmail.com wrote:
I'd like to read in a stream of data which looks like this:
the device sends out a byte-string of 11 bytes roughly
On 7 feb, 15:04, Heiko Wundram modeln...@modelnine.org wrote:
Am 07.02.2012 14:48, schrieb Antti J Ylikoski:
On 7.2.2012 14:13, Jean Dupont wrote:
ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,
rtscts=0, dsrdtr=0, timeout=15)
In Python, if you want to continue the source
On 7 feb, 05:21, Terry Reedy tjre...@udel.edu wrote:
On 2/2/2012 3:57 PM, Jean Dupont wrote:
I'd like to read in the output of a voltcraft vc960 voltmeter
connected to a usb-port.
I found the perl-script below but I'd like to accomplish the same with
python:
The script below
On 8 feb, 01:26, Dietmar Schwertberger n...@schwertberger.de wrote:
Am 03.02.2012 14:11, schrieb Jean Dupont: As my request might have been too
much asked, I have started doing
some coding myself.
I'm in doubt about the readline statement -which doesn't show anything
received
27 matches
Mail list logo