15,181 Topics

Member Avatar for
Member Avatar for Stefano Mtangoo

I was sitting Idle and I decided to write simple image viewer to try myself on DC/Canvas but I didn't find any tutorial to guide me as I have never done that before. Here there are some restriction and I cannot view showme do. So anyone to help me with …

Member Avatar for Stefano Mtangoo
0
133
Member Avatar for lllllIllIlllI

Hi, i have been using the wxPython TimeCtrl for a while now, when fiddling with it i realised that it would never go to 10:00 AM.. It would always just skip to 11 o'clock. I found it still did this in the wxpython demo. I was wondering if this was …

Member Avatar for sneekula
0
92
Member Avatar for Lolalola

Hi, I try insert new themes in PLone 3. But show this error: [code] C:\Program Files\Plone>bin\buildout Uninstalling zopepy. While: Installing. Uninstalling zopepy. An internal error occured due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "c:\program files\plone\buildout-cache\eggs\zc.buildout-1.4.3-py2.4.egg\z c\buildout\buildout.py", line 1660, …

Member Avatar for Lolalola
0
188
Member Avatar for d8m9

Hello, Iam beginner in python and my english is not so good. Sorry. I want (must) to write a program witch must read the .txt file and pursuant to the informations in text write another text to another file. :) example: [B]in .txt file:[/B] <HEADLINE text="This is headline 1"> <PARAGRAPH …

Member Avatar for snippsat
0
137
Member Avatar for SwisherStreets

How would i write a program that asks for you to input a letter (a for example) and how many letters you want to shift (3 for example) and gives you the decoded letter (D)? Also how would you loop it so it goes from Z and starts over with …

Member Avatar for Gribouillis
0
123
Member Avatar for dinilkarun

Hello Friends, Through python I am able to generate an excel report. In one of the cells I have populated an e-mail address which shows up as a hyperlink. Can I make this hyper link to launch outlook with the e-mail address present in the cell in the "To" and …

Member Avatar for sneekula
0
109
Member Avatar for drboring

I am new to Python Server Pages (psp). Can psp “read” the html field value? Example: [CODE] <html> : : <body> <input type="hidden" id="selected" name="selected" value="0"> <% # Read/Get the above hidden field value # Perform some task #re-write the hidden field value %> : : </body> </html> [/CODE] Thanks …

Member Avatar for slate
0
37
Member Avatar for sindhujavenkat
Member Avatar for garyinspringhil

I am trying to finish the second release of this hpgl interface for ubuntu/linux, The first release is popular but not very feature rich. My problem is I have added two large save and read in settings buttons on the bottom of the gui window. I need to be able …

Member Avatar for garyinspringhil
0
95
Member Avatar for bharatk

Hello I have generated a list of words & their occurrences. Now, how to I filter them based to the starting alphabet. I.e. all words starting with 'a' should be filtered from thos list & put into 1 list along with their occurrences, similarly b,c & d. This is the …

Member Avatar for woooee
0
142
Member Avatar for anishakaul

This is the python code from a file 'legend.py' that prints the contents of variable 'doc' to console: [CODE=python]print '\n'.join (doc)[/CODE] Now through the above code, whatever is inside doc gets written to the console, if I run python legend.py description.xml Below is a shell script : [QUOTE][B]for z in …

Member Avatar for anishakaul
0
279
Member Avatar for Goonie12

In a file called functions.py, write the functions listed in the table below. Include a docstring comment for each function. The docstring should be an appropriate rephrasing of the specification on the right-hand side of the table. See the Assignment rules page for guidance on how to write good docstrings. …

Member Avatar for vegaseat
-3
184
Member Avatar for Jonhpt

Hello, I have a little problem. My program (LH-ABC 3.2.0) works well in Windows XP and Vista. But in windows seven programa closed, but process keep going :S What can be problem? Maybe one thread not closed? But this problem is exclusive in windows seven. Source of my program in …

Member Avatar for vegaseat
0
179
Member Avatar for htrantk

I am learning Python now. It is too complicated. I started the file that i did but it crashed. Can you show me how to do it? Write a Python program to convert a given weight from kg to pound and to gal and to liter. 1kg=0.2642gal=2.205lb 1gal = 3.785liter …

Member Avatar for htrantk
0
3K
Member Avatar for cascade3891

Hello Python community, I've just finished building an app with Python and I'd like to share my experiences and get some feedback. This was from scratch (no code templates) all the way to compile and distribution on a Windows environment. Now all my colleagues at work are using the app …

Member Avatar for vegaseat
0
1K
Member Avatar for evilweasel_47

Hi folks, I am a newbie to python, and I would be grateful if someone could point out the mistake in my program. Basically, I have a huge text file similar to the format below: AAAAAGACTCGAGTGCGCGGA 0 AAAAAGATAAGCTAATTAAGCTACTGG 0 AAAAAGATAAGCTAATTAAGCTACTGGGTT 1 AAAAAGGGGGCTCACAGGGGAGGGGTAT 1 AAAAAGGTCGCCTGACGGCTGC 0 The text is nothing but …

Member Avatar for woooee
0
106
Member Avatar for Tech B

I've been reading a lot here lately on self replicating code. I wanted to try my hand at it. It only copies itself in forward directories. I.E. "C:\Users\cd.." is not supported yet but will be later. I wanted to post it here to see if anyone had ideas, tips, and …

0
71
Member Avatar for mahela007

I got this from the python docuemtation. date2 = date1 + timedelta --->date2 is timedelta.days days removed from date1. (1) date2 = date1 - timedelta---> Computes date2 such that date2 + timedelta == date1. (2) timedelta is an object representing a time [I]difference[/I] and a date object represent a certain …

Member Avatar for mahela007
0
81
Member Avatar for Lolalola

Hi, Can you recommend a book in Python language for the creation of pages (webmasters). Without any Framework. Thanks Which part of ... [B]If you know a good project, please post it here. If you have questions, start your own thread and don't clutter the sticky.[/B] ... don't you understand? …

-1
65
Member Avatar for sindhujavenkat

I am new to Python.. I want to know how can be the number of lines can be reduced? My task is to print whatever Simon says from the text file given below. the o/p should be sing,dance, go to school. Is there any way to make the following program …

Member Avatar for Gribouillis
0
102
Member Avatar for mahela007

how can I check the difference between two dates using the datetime modules? (or any other module that would do the same thing). I want to read a date from a file (which was written in the same format as the datetime module uses) and then calculate the difference in …

Member Avatar for Stefano Mtangoo
0
193
Member Avatar for bharatk

Hello I have created a multidimensional list in python I used the following code: [CODE] r =[(300, 4), (5, 6), (100, 2)][/CODE] I tried sorting it in ascending order using r.sort() and I get [(5, 6), (100, 2), (300, 4)] I want it to get sorted based on each on …

Member Avatar for bharatk
0
96
Member Avatar for NicholasE

Dear all, I would like to make a small script that does the following: I have a file that at some point there is a section: ... ... a heading is here .... 1 2 3 4 5 6 7 8 9 10 22 22 336 11252 12 25 3 …

Member Avatar for NicholasE
0
95
Member Avatar for snake03

Hi I am writing some code for a game in python and using sql to store the information for each of the cells. I keep getting a NameError: name 'row' is not defined error. Could someone please help? Below is a bit of the code: [CODE]con.execute("create table Game(row integer primary …

Member Avatar for vegaseat
0
105
Member Avatar for vegaseat

A lotto simulator with a twist, you pick the winning numbers and the computer buys the lotto tickets. Anyway, the computer at least generates the tickets and checks how many of them would match the winning numbers you selected. Let's assume you would be the state lotto commissioner and your …

Member Avatar for lyndon enero
0
7K
Member Avatar for Dashien

Hey all; I had a serious problem occur; after compiling and programming something in python for months, my computer crashed, and the 3 back ups I had of the program crashed within 24 hours after mine, so I lost ALL DATA. The only data I have is the exe program …

Member Avatar for vegaseat
0
130
Member Avatar for The-IT

Hello, I decided I want to make a game where you have to move a ball through a maze and make it to the end without hitting any walls, some of which are invisible!! The game is extremely far from completion, and will be until I learn how to overcome …

Member Avatar for The-IT
0
98
Member Avatar for cisac

Hello, I have 2 canvases, which will eventually contain plots made with matplotlib, packed side by side in a Tkinter window. Using mpl_connect with key_press_event and button_press event works fine initially. However, when I pack the second canvas widget the binding to key_press_event stops working. The button press binding still …

0
38
Member Avatar for -ordi-

Hey, I have a problem, if checkboxes is activated, it could be download packages ( Ubuntu ), would be necessary to verify to checkboxes and if it's true, then these packages, which should installed my system ( Ubuntu ). [CODE]#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2010 from …

0
45
Member Avatar for autobiography

I have a homework assignment to instructs me to play around with functions and exceptions, but one seciton I'm stuck with is a certain condition it tells me to write o if x is not "So sue me!", but x is still not convertible to an int (by calling int(x)), …

Member Avatar for autobiography
0
100

The End.