15,179 Topics

Member Avatar for
Member Avatar for adil.mahmud.choudhury

I am very new to python. I have developed a program using the GUI of python. My development is almost done but i am stuck with a point. I have designed my gui using Listbox to read data from a file and show it. All i need to add a …

Member Avatar for woooee
0
179
Member Avatar for Batcher

New to Python and programming. I want to start with a txt file with different names per line Output a program that will create a directory for each entry in txt file I'm having problems getting txt file values into Python list, and using that as input for directory name, …

Member Avatar for TrustyTony
0
181
Member Avatar for davecoteproductions

Hi, Cote here, and I'm very pleased to announce that I've ported ALL my sl4a apps to eclipse apk, it embeds with the python interpreter, no need to install anything but the app off google play! I have completed: A) Android Eye (Computer Vision), that takes a picture and tells …

Member Avatar for BigPaw
0
324
Member Avatar for Emul

Installing Eric4 on Windows 7, 32 Bit; using MS VS C++ 2010 After much ado and trial-and-error I was able to get it installed, via the following steps: Command-prompt run as administrator in all cases All packages installed in the root of C:\ After changing each environment variable, update command-prompt …

0
127
Member Avatar for Tortura

Hey guys, I'm trying to move data by clicking on a QPushButton from one QTreeView in the second QTreeView. Do you know how to do this. I know that I have to connect the QPushButton with a method which makes this possible. I don't really know how this method looks …

0
125
Member Avatar for manmohit.sehgal

Write a function called blackAndWhite that has as input argument the file name of an image file (example: bluefish.gif), then transforms the image in black and white and displays it. In order to create a black and white image, do: 1. Prepare the image file: (i.e open the image file …

Member Avatar for manmohit.sehgal
-3
82
Member Avatar for compscihelp

Hi, I need to create a function using **recursion** to find out if two lists have the same shape. For example, if nest1 = [4, [ [3,6], [] ,7] ,[8] ] nest2 = [ [ [3] ] , 7 , [ [5 , [9 , 2] , [ [ [ …

Member Avatar for compscihelp
0
201
Member Avatar for echocoder

I have a nested list, named env, created in the constructor and another method to populate an element of the grid defined as below: ... class Environment(object): def __init__(self,rowCount,columnCount): env = [[ None for i in range(columnCount)] for j in range(rowCount) ] return env def addElement(self, row, column): self[row][column] = …

Member Avatar for echocoder
0
1K
Member Avatar for Jacklittle01

Hi all: I'm building a game (text-based rpg) and i need to learn how to add a checkpoint-like system into it, but i want it to be able to fit in my script

0
70
Member Avatar for Eridanus

Hello, I need a little help with the correct implementantion of the bisection search algorithm in the following exercise: - with 2 given variables, balance and annual interest rate, calculate the smallest monthly payment so that we can pay off the balance within a year test case: balance = 320000 …

Member Avatar for amRx1
0
1K
Member Avatar for kogia

I'am trying to undestand how I can use the csv module in python to open a csv file in the same folder as the python script - and then create a .shp (shape file) using the shapefile module pyshp. The csv file looks like this, but can have a couple …

Member Avatar for kogia
0
249
Member Avatar for Jacklittle01

what is wrong with this code #This is not free source #Don't cheat by looking @ this #If you do you ruin the game #A Towel Production # APOC #------- global ammo1 global ammo2 global ammo3 global health global tech_parts global exp global radio_parts ammo1=10 ammo2=0 ammo3=0 health=100 tech_parts=0 exp=0 …

Member Avatar for TrustyTony
0
190
Member Avatar for whoisstanley

Hi guys, i'm pretty much new to python, this might be simple for some of u. But i appreciate if help is given. Here's my sample code: import random animal = ['duck', 'chicken', 'horse'] drinks = ['coke', 'tea', 'coffee'] test = animal + drinks print(test) word = random.choice(test) print(word) print() …

Member Avatar for Lardmeister
0
182
Member Avatar for nUmbdA

Hello everyone. I am in a programming fundamentals class which we are using python. I am working on a Lab problem and really am not 100% sure how to do it. The Problem: A shipping company (Fast Freight Shipping Company) wants a program that asks the user to enter the …

Member Avatar for nUmbdA
0
3K
Member Avatar for emeka.l.iwuagwu

good day all, i was having a little difficulty in trying to code an application in python to read sms i do something like this import inbox import sms but i still dont know where to go from there. The main objective of the code is to intercept sms messages …

Member Avatar for M.S.
0
404
Member Avatar for Gribouillis

This snippet defines a `dir()` function which extends python's builtin `dir()` function by adding options to filter the returned sequence of strings by the means of regular expressions. The main use case is live inspection of python objects and modules during an interactive session with the python interpreter. The idea …

Member Avatar for TrustyTony
2
495
Member Avatar for PeteB247

Hi, I am currently undertaking an assignment for university. I've having quite a bit of trouble with this seemingly simple task, which is to import the data from 2 .txt files into 2 tables within an sql database via python. Here is what I've done so far. This subject is …

Member Avatar for woooee
0
2K
Member Avatar for kRaeTwin

Hi, I've just started learning Python and for my first script I wanted to make something that would make life easier and that I would actually use, so starting small I've began working on a Torrent Search script that uses the ISOHunt API. However I've ran into a problem in …

Member Avatar for woooee
0
1K
Member Avatar for rrn8

hello, iam a newbie to python, i am trying to execute a shell command within python code and need the output of the shell command to be passed to the same python code for subsequent use. Here i need the value of the string "ListenPort" from the text file /tmp/file.txt …

Member Avatar for rrn8
0
306
Member Avatar for danikabhai

Hello evryone I want to access the **key** of a **particular edge**(for example edge (1,2)) in a **multigraph**, but I am unable to do so. Please help me out here. Any help will be greatly appreciated. Thanks

Member Avatar for danikabhai
0
111
Member Avatar for Niner710

Hi, I have a python array that is either a list or numpy array. I want to do a bitwise inversion of all the elements and was wondering what the easiest way would be. a = [0xFF,0xFF,0xFF,0xFF] invert to.... b = [0x00,0x00,0x00,0x00] What is the easiest way to do this? …

Member Avatar for TrustyTony
0
77
Member Avatar for sym366

I upload my test_maze.txt so you can see my problem. I have some 3 unwanted $ that went up and 1 unwanted $ that went down on my path on the maze from P to T. I think the problem is in line 20 in the def main(): of my …

Member Avatar for Xantipius
0
1K
Member Avatar for lancelot626

I saved some images in an sqlite database but when i tried to display them using static bitmap i get an error OnOpenEdit self.frmEdit.imageCtrl.SetBitmap((i[7])) File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_controls.py", line 1229, in SetBitmap return _controls_.StaticBitmap_SetBitmap(*args, **kwargs) TypeError: in method 'StaticBitmap_SetBitmap', expected argument 2 of type 'wxBitmap const &' here is a print of …

0
135
Member Avatar for BigPaw

I would like to write Python 3.3 code on my Android Mobile Phone. Are you using any particular app to do this? Is it also possible to compile?

Member Avatar for BigPaw
0
128
Member Avatar for nUmbdA

I am in a Fundamentals of Programming class which we are using Python. In the book was a simple code to solve a problem where a cook knows in cups how much he needs but we are converting it to ounces. I was playing around with that and trying to …

Member Avatar for glenwill101
0
587
Member Avatar for johnpaul.denton

Hi I'm quite new to Python and am trying to figure out where I'm going wrong, I'm trying to use a bisect search to find :- Monthly payment made to clear loan amount using :- Monthly interest rate = (Annual interest rate) / 12 Monthly payment lower bound = Balance …

Member Avatar for johnpaul.denton
0
70
Member Avatar for mbh1992

Trying to write a code that finds out if a random latitude is north of a list of cities. I have the latitudes of the cities as was thinking to use them as the random latitudes. I know this code is wrong, it was the way I could get it …

Member Avatar for richieking
0
137
Member Avatar for combiana7

Can anyone help me out here? I have little clue on a CS assignment but can't get started on it. Question states: Write a program that generates a student's username and converts a score to a letter grade. The username consist of the initial of the name and the last …

Member Avatar for Lardmeister
0
94
Member Avatar for hughesadam_87

Hi guys, I am running a costly simulation and trying to optimize the output. I'd have a fixed range over which the parameter of interest can vary, and about 100 values it can take in between. We know the result we are looking for and want to find the parameter …

Member Avatar for hughesadam_87
0
162
Member Avatar for ania_p

Hi when i ran cx-freeze on Ubuntu 32 bit everything works, but when I try to freeze the same script on Ubuntu 64-bit I get the following error. I would be very thankfull for your help: le parentModule) File "/usr/lib/pymodules/python2.7/cx_Freeze/finder.py", line 286, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "/usr/lib/pymodules/python2.7/cx_Freeze/finder.py", line …

0
74

The End.