On 04/04/13 16:58, Peter Otten wrote:
Phil wrote:
I think I must be very close now so I'll post just the code that I think
is relevant.
This the main window class:
import satListDialog
Here you are importing the module "satListDialog"
class MainWindow(QMainWindow, Ui_MainWindow):
This
On 04/04/13 13:12, Phil wrote:
On 04/04/13 11:58, Steven D'Aprano wrote:
On 04/04/13 12:47, Phil wrote:
And this is the error message;
"global name 'Ui_satListDialog' is not defined"
On its own, that is almost useless.
Python gives you more debugging information than that: it gives you a
c
On 04/04/13 08:51, Phil wrote:
By the way, I notice that it can take several hours for my postings to
appear on the list. Possibly due to moderation?
Nope, the only posts that get moderated are the ones where the poster
has not subscribed to the list (or is using a different email address
th
I am new to python. My intention is to read the file digi.txt and store in
separate arrays all the values of each columns. However, the following
program prints only the last value, i.e. 1350696500.0.
Please help to rectify this.
f = open ("digi.txt", "r+")
datafile = f.readlines()
list_of_lis
Hi,
I am importing data produced from an external code. The data is organized
into columns. I would like to be able to assign each column to a variable
or array. How would you recommend doing this? I have been looking into the
pickle function, as well as "f.readline" and "for line in f:" and I got
I get the example os.system('ls -al') no problem.
i'm trying to create a variable with my command built but needs to include
quotes.
Portion of code is as follows:
someip = '192.168.01.01'
var1 = 'lynx -dump http://' + someip +
'/cgi-bin/.log&.submit=+++Go%21+++ > junk'
print var1
os.
Hi everyone,
Can someone please help me with the following phyton script? I received the
error message DeprecationWarning: the sets module is deprecated
from sets import Set.
After googling, I have tried the methods others suggest: change sets to set or
delete the from sets import Set
Hello,
I am trying to modify a game of nim code. The game in the code works as:
"You need to remove from 1 to 3 straws from the pile.
The player that removes the final straw is the loser."
But I would like it to be like the classic game, where you have 4 piles
containing 1,3,5 and 7 sticks
whe
Hello there,
am beginner in python. i want start my first project with chat-server.
i want create a messenger which encodes msg, hides it in a
image(steganography) and send it to second user. i want this messenger be
available also by internet and non static ips,so i want use chat server.
also i wa
I've just flushed the queue so there will be some old or duplicate
messages coming through.
Apologies, but I hadn't looked in there for a couple of weeks!
Oops.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
___
Tutor mail
On 03/20/2013 02:12 AM, Arijit Ukil wrote:
I am new to python. My intention is to read the file digi.txt and
store in separate arrays all the values of each columns. However, the
following program prints only the last value, i.e. 1350696500.0.
Please help to rectify this.
f = open (/"digi.txt"
On 03/18/2013 11:14 PM, Clark, Tristan wrote:
Hi,
I am importing data produced from an external code. The data is
organized into columns. I would like to be able to assign each column
to a variable or array. How would you recommend doing this? I have
been looking into the pickle function, as
On 03/20/2013 09:14 PM, Matthew Johnson wrote:
I recently asked a question on SO:
http://stackoverflow.com/questions/15180767/subset-list-based-on-value-of-dictionary-element
and got very confused when trying to generalise the answer.
The problem is as follows:
say i have this list, and would
Dear All,
I know this error occurs when one tries to multiply a string with a
fraction i.e float. In my case , I can't figure out how can a numpy
floating point array be a string. Interestingly, the concerned expression
gets printed in the loop for the first time but on the second go it fails.
T
I attach the script herewith.
On 4 April 2013 19:10, Sayan Chatterjee wrote:
> Dear All,
>
> I know this error occurs when one tries to multiply a string with a
> fraction i.e float. In my case , I can't figure out how can a numpy
> floating point array be a string. Interestingly, the concerne
---
You've been invited by Sayan Chatterjee to use Google Talk.
If you already have a Google account, log in to Gmail and accept this
chat invitation:
http://mail.google.com/mail/b-8dcd51705-090ef095ef-tIz_r28PffY3z4wTZmz--hUlRBY
On 20 March 2013 06:12, Arijit Ukil wrote:
> I am new to python. My intention is to read the file digi.txt and store in
> separate arrays all the values of each columns. However, the following
> program prints only the last value, i.e. 1350696500.0.
> Please help to rectify this.
>
> f = open ("di
On 4 April 2013 14:40, Sayan Chatterjee wrote:
> Dear All,
>
> I know this error occurs when one tries to multiply a string with a fraction
> i.e float. In my case , I can't figure out how can a numpy floating point
> array be a string. Interestingly, the concerned expression gets printed in
> th
Sayan Chatterjee wrote:
>I know this error occurs when one tries to multiply a string with a
>fraction i.e float. In my case , I can't figure out how can a numpy
>floating point array be a string.
The problem is not that the numpy array is a string but that you append
the array to a python list:
On 03/27/2013 08:30 AM, Yasin El Guennouni wrote:
Hello,
I am trying to modify a game of nim code. The game in the code works as:
"You need to remove from 1 to 3 straws from the pile.
The player that removes the final straw is the loser."
But I would like it to be like the classic game, where
First up please give a sensible subject, say "problem parsing csv file".
I'm assuming the crud shown below is due to you posting in html, please
use plain text instead.
On 20/03/2013 06:12, Arijit Ukil wrote:
I am new to python. My intention is to read the file digi.txt and store
in separate
Sorry about the indentation guys my mail service atomatically removed it when I
pasted the text (I tried to fix it by hand but it was hard to tell if I was
sucessful.)
I was tring to create a list object (self) and change it using the list methods
and some additional ones I will define in my cla
cevyn e writes:
> I get the example os.system('ls -al') no problem.
>
> i'm trying to create a variable with my command built but needs to include
> quotes.
> Portion of code is as follows:
> someip = '192.168.01.01'
>
> var1 = 'lynx -dump http://' + someip +
> '/cgi-bin/.log&.submit=+++G
On 04/04/2013 08:23 AM, Dave Angel wrote:
On 04/03/2013 09:53 PM, Steven D'Aprano wrote:
On 04/04/13 12:29, bessenkphilip wrote:
Hi all,
I'm having a doubt in the below program's 2n'd "for" loop.
for n in range(2, 10):
... for x in range(2, n):
... if n % x == 0:
...
24 matches
Mail list logo