14,945 Topics

Member Avatar for
Member Avatar for nbuchholz

I'm in the midst of developing a Python toolset for some proprietary hardware used at NOAO. The code has to write a series of EEPROMS in the hardware to determine conversion factors for hardware attributes. The EEPROM format is 2048 32-bit words each word represents the slope, intercept, minimum or …

0
96
Member Avatar for Roelof Wobben

hello I have this programm [code] class zoeken() : pass def __len__(self): return 0 def __str__(self): return test2 def find(self, strng="", ch="", start=0, stop=0): index = start while index < len(strng) and index < stop: if strng[index] == ch: return index index += 1 return -1 test = zoeken() test.woord …

Member Avatar for snippsat
0
116
Member Avatar for znake

Hi, I've just started learning python (and programming overall) and I would like to ask for a little help from you, guys. What fascinates me (and you may think it's weird) is programs which simulate human's action/behavior (bots), so I wanted to ask if anyone could show me some good …

0
167
Member Avatar for bettersaid

someone knows how to launch an app in mac?? [CODE] import os class LaunchApp: def launch(self): os.startfile("/Applications/QuickTime Player.app") s = LaunchApp() s.launch()[/CODE] this code works on windows and [CODE]os.system('gnome-open ' + /path)[/CODE] on linux but in mac, it returns this error "AttributeError: 'module' object has no attribute 'startfile'"

Member Avatar for nathan099
0
1K
Member Avatar for acrocephalus

Hello! I have a table with some rows and cells (code at the end), and created a function which searches for text inside the cells and returns the row number where the text is (to simplify the example, only English Name is working). Then, it should set the grid cursor …

Member Avatar for acrocephalus
0
150
Member Avatar for Macooper26

I just downloaded Python 2.7 and 3.2 and it just looks like DOS. I'm using Windows, so I don't know if that's the problem--because I saw someone using a MAC and it looked like they didn't have the same problems that I'm having--because I can't save and I have no …

0
35
Member Avatar for acrocephalus

Hello! How can I destroy a wx.MessageDialog after a given amount of time? I have tried EndModal without success. Cheers! Dani

Member Avatar for SoulMazer
0
82
Member Avatar for lewashby

I have another post entitled 'understanding wxPython' in which my code runs but fails to build the scroll bars as shown by my python programming book. Note that the code in the book is running on Windows and mine is running on Ubuntu.

Member Avatar for SoulMazer
0
132
Member Avatar for ihatehippies

why does this fail to call any event? [CODE=python] def StartTimer(self, timer = 1): timer_data = { 1: (self.TimeKeeper, False, 50), 2: (self.InterimSearch, True, 200), 3: (self.InterimCurSearch, True, 200), 4: (self.SetOpaque, False, 50), 5: (self.DisplayPhoto, True, 200) } function, singlefire, time = timer_data[timer] timer = str(timer) # class of constants …

0
148
Member Avatar for bspace

Hi, I'm trying to learn OOP, and I've run into a problem. I am supposed to have the user create a user name, and then I'm supposed to import a list of movies for the user to rate. I created a class called Movie. The function within is supposed to …

Member Avatar for bspace
0
242
Member Avatar for sss33

How to convert numbers from a file into integers the numbers in the file are alerady split but they are strings. Doesnt anyone know how to convert them to integers so they can be manipulated as numbers.

Member Avatar for griswolf
0
101
Member Avatar for Ghostenshell

Really stuck on this and its supposed to be easy. I'm supposed to input 2 positive nonzero integers into x and y. Then return the value of x times y. The book has an example of 7 * 4 = 4 + 4 + 4 + 4 + 4 + …

Member Avatar for TrustyTony
0
139
Member Avatar for james27

hello ALL im making some simple python post script but it not working well. there is 2 part to have to login. first login is using 'http://mybuddy.buddybuddy.co.kr/userinfo/UserInfo.asp' this one. and second login is using 'http://user.buddybuddy.co.kr/usercheck/UserCheckPWExec.asp' i can login first login page, but i couldn't login second page website. and return …

0
86
Member Avatar for kerimabdullah

#hi friends #when I try to press Control-a the characters in the text box are not selected # I want help but I dont know class type programming. My codes are below. [CODE] from Tkinter import * root = Tk() def tcopy(event): mytextbox.clipboard_clear() mytextbox = text.get("sel.first", "sel.last") mytextbox.clipboard_append(Textkut) def tcut(event): …

0
31
Member Avatar for kerimabdullah

#hi friends #when I try to press Control-a the characters in the text box are not selected # I want help but I dont know class type programming. My codes are below. [CODE] from Tkinter import * root = Tk() def tcopy(event): mytextbox.clipboard_clear() mytextbox = text.get("sel.first", "sel.last") mytextbox.clipboard_append(Textkut) def tcut(event): …

0
34
Member Avatar for softbrianes

Hello, Im failing to crack the messege" XWUFTOSNWHCFGIBWYATYJIB" which is the solution to the question " What do you call an old hen that makes annoying noises?" Please help me solve it. Kindest regards Softbrianes

Member Avatar for redyugi
0
51
Member Avatar for softbrianes

Hello, I am struggling to decrypt the messege "XWUFTOSNWHCFGIBWYATYJIB" which is the answer to the question "What do you call an old hen that makes annoying noises?" Please help me write a python code which can possibly decrypt the messege. Kindest Regards Softbrianes

0
46
Member Avatar for sss33

How to make a program in python to do this? 20% of the score comes from the average of 8 Quizzes (each has maximum of 10 points) 20% of the score comes from the average of 2 exams (each has maximum of 100 points) 40% of the score comes from …

Member Avatar for vegaseat
0
126
Member Avatar for Ultralisk

Is there a way to sort an empty list of strings as you add more values to the list? I cannot find a decent example of this anywhere and struggling with this. The insertion sort seemed like the logical plan, but I cannot for the life of me find anything …

Member Avatar for vegaseat
0
2K
Member Avatar for lewashby

[CODE]import wx # create window app = wx.App() win = wx.Frame(None, title = "Simple Editor", size = (410, 335)) win.Show() # create buttons loadButton = wx.Button(win, label = 'Open', pos = (225, 5), size = (80, 25)) saveButton = wx.Button(win, label = 'Save', pos = (315, 5), size = (80, …

Member Avatar for vegaseat
0
108
Member Avatar for KrazyKitsune
Member Avatar for KrazyKitsune

I'd like a code in which a raw_input function will end and move to a print function after 35 seconds. So something like: [code=syntax]var = raw_input() # put time limit of 35 secs here print "Time's up!" # prints this only if time runs out in the raw_input[/code]

Member Avatar for wikirifi
0
4K
Member Avatar for Toikkala

Hey, i need to make app that should take 10 chars from list. I tried it with range command but it's not working. [CODE] list = 'abcdefghijklmnopqrstuvxyzo' for list in range(10): print list [/CODE] And this code just prints numbers 0 to 10. So, is there some other command that …

Member Avatar for TrustyTony
0
225
Member Avatar for kerimabdullah

#Hi friends I want to shorten these codes I must control at least 100 space and delete please help[CODE] for i in range(mylist.count('')): mylist.remove('') for i in range(mylist.count(' ')): #delete 1 space mylist.remove(' ') for i in range(mylist.count(' ')): #delete 2 space mylist.remove(' ') for i in range(mylist.count(' ')): #delete …

Member Avatar for TrustyTony
0
124
Member Avatar for kumar_k

Hi, Iam in the process of creating a program for converting words in a file to numbers. Am struck at the input file selection gui script. i want to create a GUI to open a file from the open file dialog box and to read the words in the file …

Member Avatar for kumar_k
0
140
Member Avatar for Techguruwanabe

I am a student and my assignment is to write a change calculator program.I have got to go from Dollars down to pennies (not to much work) but I lost my notes (Kinda stupid of me) and I dont know how to fix my program.Please help [CODE]print 'Hello please enter …

Member Avatar for cghtkh
0
2K
Member Avatar for Ultralisk

Hi Having trouble getting this started. I wan't to read lines of data from my file, which has the current contents Scores.txt - [CODE] Names Difficulty Scores Totals Mark Smith 2.5 6.0 5.0 5.5 5.5 6.5 6.0 6.5 44.25 John Andrews 2.8 5.5 5.5 6.0 4.5 6.0 5.5 5.0 46.20[/CODE] …

Member Avatar for cghtkh
0
123
Member Avatar for jimmy9pints

Total new question here - and I know [URL="http://www.daniweb.com/forums/thread76747.html"]a similar question[/URL] has been asked before - but I've done a bit of work on this and I'm stuck, so I'd appreciate some help. The exercise I'm stuck on is this: [QUOTE]Write a function that implements Euclid's method for finding a …

Member Avatar for jimmy9pints
0
122
Member Avatar for convoluted

Hi all, Just started using Python a week or so ago, really enjoying it so far, but stuck with a project I'm working on. I'm trying to create a in-dash display system which uses Python to communicate with a piece of hardware and uses an HTML page to display the …

Member Avatar for SoulMazer
0
182
Member Avatar for noniterum03

I am having trouble with tkinter and python on my Mac, I'm running Leopard.I did a port install of python2.6, numpy, scipy, matplotlib, but when I try and import matplotlib.pyplot, I get the following error. I think there is a conflict with the pre-built version of python that comes with …

Member Avatar for woooee
0
156

The End.