15,190 Topics

Member Avatar for
Member Avatar for ping24

Hi Guys, I have just came into the wonderful world of Python. I am really enjoying it. Anyways I am having a query on Python. Here is my Query.. I have downloaded the python module Linkchecker. And you must be knowing that it dumps the website URLs of a specific …

Member Avatar for ping24
0
168
Member Avatar for Stefano Mtangoo

Hello guys! How are you doing all I again need help:?: Can anyone help me to get SPE IDE run as executable using py2exe? I have tried using code below what I get is exe file but when I run it I get message .....needs higher version of wxpython... error, …

Member Avatar for Stefano Mtangoo
0
153
Member Avatar for tzushky

Hi again, I am trying to do something really sillya nd it isn't working:( I have a main where I want to start two threads using the same handle function, but the second thread generates the following error: Unhandled exception in thread started by Error in sys.excepthook: Original exception was: …

Member Avatar for tzushky
0
167
Member Avatar for morraine

Hello I'm new to python and I'm programing an application using PyQt at the moment now i would like to know how to pass some variables from my main parent page to included pages which in the own right have a lot of processing, event handling and data entry and …

Member Avatar for woooee
0
257
Member Avatar for leegeorg07

hi again ive been lookin at this code that i found on the internet that test someones mathematical skills i have ironed out most of the errors but i cannot work out this one please help the code is [ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print print "\t\t\t\tHello", name …

Member Avatar for Ene Uran
0
121
Member Avatar for Jadellll

Hi, I'm looking for the module that floor() is located in. I would have assumed it would be loaded from the path, but after trying several times, its not. Also, while I'm at it, is there a way to permanently add things to the path. So I can add my …

Member Avatar for Gribouillis
0
150
Member Avatar for lid

Hi everyone ! Inside my program, i have a function which delete all the values in the "Entry" widgets. This function works with a simple button "Reset". I have also 2 radiobuttons. I would like to know, please, how radiobutton.deselect() works to deselect all the radiobuttons with my buton "Reset". …

Member Avatar for lid
0
13K
Member Avatar for JA5ONS

aggr! i now have this problem. Traceback (most recent call last): File "C:\Users\User\Desktop\Python\File.py", line 87, in ? self.entID_Num = Entry(self) NameError: name 'self' is not defined part of my code is [CODE] # movie id input self.entID_Num = Entry(self) # movie id input position self.entID_Num.grid(row = 0, column = 1, …

Member Avatar for JA5ONS
0
91
Member Avatar for astrogirl77

Hi, I'm new to Python and am hoping to find help with coding a Python script, applet. I code in an old version of Visual Basic 4.0, I have a simple app that is about 3 and a half pages of code long it does some relatively simple math additions …

Member Avatar for slate
0
106
Member Avatar for JA5ONS

guys, im after a piece of code that when embedded into a button, clears the text entry boxes of the GUI so new information may be added. Like adding a new customer after you press save. At the moment you press save but the information stays there cheers.

Member Avatar for vegaseat
0
104
Member Avatar for vegaseat

This post by [B]s7plc[/B] was moved from the Starting wxPython (GUI code) thread ... [QUOTE]I've been working with various widgets from the wxPython demo library, and am making pretty good progress. But I just ran into a problem that I am sure has a simple answer, but I just can't …

0
81
Member Avatar for Peter_Saumur

Hi all, First-timer and first post. I have been given a task of convert large data files to/from a self-defined format. In the "xml" form, the format for each record is: [CODE] <power> <name> </name> <level> </level> <kind> </kind> <source> </source> <flavor> </flavor> <type> </type> <keywords> </keywords> <action> </action> <attackTypeAndRange> …

Member Avatar for Peter_Saumur
0
85
Member Avatar for JA5ONS

so i have created a program, im not sure how to change gui screens, for example, the first screen is username/password on the opening scree, and than it will move onto the next screen where i can input data when i have enterd password correctly. cheers

Member Avatar for shadwickman
0
106
Member Avatar for Dekudude

[code=Python] def checkIt(arr,inp): bool = 0 for i in arr: if i in inp: bool = 1 break return bool array = ['hi','hey','hello'] string = "Hi there!" if checkIt(array,string) print "Yay!"; [/code] That's my code. It returns, "Yay!". Now... I like what it does-- it searches the string for a …

Member Avatar for shadwickman
0
122
Member Avatar for slendergreen

I'm new to Python and not anywhere near a competent programmer. Anyway, if someone could help me get over this hump, I'd appreciate it. I need to write a Python script that calls commands from the OS that may have lengthy output. Let's say I want to see the results …

Member Avatar for Gribouillis
0
124
Member Avatar for Gribouillis

In the Perl language, you can fork a child process with the following syntax [code=perl] open CHILD, " | programA | programB | program C"; print CHILD "this is an example input"; [/code] (at least, you can do this under linux). This statement starts 3 processes in fact; programA, B …

Member Avatar for slate
0
225
Member Avatar for agibbons

I am making my own file manager for linux, hopefully it will be cross platform, and I am trying to identify different file types, in particular folders. I have already searched google but I could only find a way of identifying text files. Does anyone have any advice on identifying …

Member Avatar for slate
0
309
Member Avatar for magicMan123

Hey everyone, I am a beginner at python, and on these forums (even though I have lurked here quite a bit). Anyway, I really need some help with recursive functions. I don't exactly know how they work, and I have to be able to answer the following questions: [code] Turn …

Member Avatar for slate
0
185
Member Avatar for magicMan123

I need to do the following question: [code]Turn a line of input containing matching pairs of round (()) or curly ({}) brackets into a mountain range. The height of the mountain should indicate how deeply nested the brackets are. For example, given this input: {({(){}()}{(){}()})({(){}()}{(){}()})({(){}()}{(){}()})} Your program should output: (){}() …

Member Avatar for slate
0
316
Member Avatar for dmlandrum

I'm trying to create a table of values based upon tanh(x) (nevermind the cubic function for the moment): [code=python]#!/usr/bin/python import math def cubic(y0, y1, y2, y3, mu): a0 = y3 - y2 - y0 + y1 a1 = y0 - y1 - a0 a2 = y2 - y0 a3 = …

Member Avatar for dmlandrum
0
112
Member Avatar for JA5ONS

I have created a program that records my input through the python command line, it asks for ie, name, favourite food, (they are examples only) it than writes the inputs to a text file, and calls the text file by one of the inputs (eg, name) i now want it …

Member Avatar for slate
0
99
Member Avatar for bimaljr

Hi I just want to count files of particular type (like *.txt) in a folder. I searched net and found this for all files count : file_count = len(os.walk(valid_path).next()[2]) But I need perticuler type like *.txt . (means how many .txt files in folder) How to do this ? Thanks …

Member Avatar for bimaljr
0
8K
Member Avatar for OffbeatPatriot

I'm making my first python program that uses multiple threads. Basically you have the main program, in this program by use of various widgets you can define how many threads you want to run and the details of how these threads will run, then you can click on a menu …

Member Avatar for Gribouillis
0
94
Member Avatar for keripix

Im making this application that lists all of my ebook and the subjects i assign them to. But i have problem to display the value of the item that i select in the QListWidget to the lineeditor. Can somebody help me? And last question, how do i open the ebook …

0
50
Member Avatar for Jadellll

My code is below. Try running it if possible to see the problem. But basically, after returning the word as backwards (cc2) it then displays none on a new line. Why? and how do I prevent this in the future? [CODE]print "Welcome to the string reverser and palindrome checker. \n …

Member Avatar for Aia
0
137
Member Avatar for Scuppery

Hi everyone I am having a little problem with a program that I wrote [code=Python] def P(): a = "a" aa = "aa" b = "b" bb = "bb" text = raw_input("Enter Text: ") SpacedText = ' '.join(list(text)) OutputText = SpacedText if a in OutputText: print aa if b in …

Member Avatar for shadwickman
0
96
Member Avatar for Dekudude

Hi there! For starters, let me say I am something of a Python newbie at the moment, but I'm learning more every day! Unfortunately, my script is at a standstill, and I can't figure out how to continue. I don't have an error, per se, but rather the inability to …

Member Avatar for Dekudude
0
219
Member Avatar for Jadellll

Hi, I'm looking for where either the sort module or the sorted() function resides. I'm thinking a module in the default folders, but have no idea where it is, or how to locate it (sorted is in the path, but I don't know how to display a parent based of …

Member Avatar for Jadellll
0
105
Member Avatar for autumnwinter

hiya, I am new to python but I must using it to write for my assessment. I am required to write an IMAP program which use to test the response time and throughput from the Courier-IMAP server in time-being. It is mainly uses to measure the courier-IMAP server performance. I …

Member Avatar for shadwickman
0
82
Member Avatar for besktrap
Member Avatar for besktrap
0
194

The End.