15,406 Topics

Member Avatar for
Member Avatar for xRuP7uR3x

Greetings everyone. I have been working on a script to convert a number from any base to any base up to base62. The user supplies the original number, the starting base, and the end base. My problem arises when converting the fractional part from base10 to the end base; the …

Member Avatar for jrcagle
0
156
Member Avatar for StudentMark

Hi, I'm having some problems and i'm hoping someone can help. I'm using python 2.4 and have the pywin library installed. I have a listbox which when I click on a description of a product displays the whole record, so for example I select "bike", and press a "select" button …

Member Avatar for woooee
0
272
Member Avatar for drjekil

hi I am from chemistry background and no idea about programming,trying to learn biopython.Can u tell me pls which books explain things very simply? i will be greatful thanks in advance.

Member Avatar for bumsfeld
0
74
Member Avatar for relm86

Hi I just started to learn to program and I choose python cause I heard it was easy to learn. But I already ran into proably a very stupid problem that a only a noob like me would need help with. I'm using idle to program with in windows and …

Member Avatar for ZZucker
0
111
Member Avatar for foreverold

I'm attempting to create 5 card stud poker game, I'm almost in the final step of it but I am not understanding how to implement it. Evaluate each players hand to determine winner(This is where my difficulty reside at the moment) Sorry if the code is messy and long, still …

Member Avatar for BearofNH
0
202
Member Avatar for strictlycustom

I need to have 3 functions in addition to the main. I got a response before except it didn't have 3 functions. The 1st function asks the user how many hours were worked and the pay rate and returns this information to main. The second function calculates the regular hours …

Member Avatar for strictlycustom
0
85
Member Avatar for sanoski

OK everyone, this is probably gonna be a stupid question, so brace yourself. I'm brand new to all this. I'm really not having a literal problem, but it's driving me nuts because I don't know what it is. Forgive me if something like this has been discussed before. I just …

Member Avatar for ZZucker
0
117
Member Avatar for StudentMark

Hi, I'm really struggling with coursework for a university project, I need to be able to link to an Microsoft Access database and read and write to it using a Tkinter GUI, so far I have the following. def do_select(): global list_box, cursor item = list_box.curselection() name = list_box.get(item) stmt …

Member Avatar for StudentMark
0
108
Member Avatar for Scala

I'm working on a tic-tac-toe game, and run into a problem. My problem lies in lines 24/25 and 30/31. I want to take the returned dictionary from the convert_to_yx() function and assign the keys and values as the x and y of the game_grid I have on line 1. I …

Member Avatar for woooee
0
87
Member Avatar for gelcode

EDIT: Apologies... user error strikes. Tis the way of the newb. Nothing to see here, move along. I have a dict with the following pairs: [code]object = {'v1': 1, 'e5': 6}[/code] If I set a variable using this data and print it: [code] var = object['v1'] print var [/code] I …

Member Avatar for vegaseat
0
90
Member Avatar for Sharke

I'm looking to write a moderately featured program to keep track of my employee schedules. I'm a novice and will be using Python. Employees mostly service clients on an ongoing recurring schedule, e.g. "every weekday at 4pm" and so my first thoughts are to allow the setting up of recurring …

0
49
Member Avatar for fongoos

I am new to programming and after a month or so of googling, I have decided to learn Python. Is this a good time to learn the language or people will soon jump ship since JAVA is now open source? By open source software, I understand that the code developed …

Member Avatar for linux
0
823
Member Avatar for yl388

Hi, everyone, I am a new user to Python. Now I have a webpage by "urllib2.Request" and "urllib2.urlopen(request)" method, but since there are several buttions in the page, how could I use "click()" to click the buttion I want? Cheers! Edward

0
37
Member Avatar for fk08

hey, i ve got an array of size 3500x300, when plotting with imshow (from pylab) then imshow takes the size of the array to build the axis. that means, my y-axis is 3500 long and the x-axis 300. is there any posibility to define 2 axes in an extra array, …

0
47
Member Avatar for 1337455 10534

Hi, I'm a high-school freshman that wont be taking a programming class until next year. I am proficient at Python, and they decided to put me in AB Programming, which is Java. When I first started programming on a z80 TI-83+ with BASIC, I set out to make my life …

Member Avatar for Ezzaral
0
99
Member Avatar for dabear

Trying to find a code to convert any base to any base, (the user specifies). I can convert numbers well, under base 10. The numbers mixed with letters confuses me. Do I read it as a string or integer? Should I use a list or dictionary? My brother is trying …

Member Avatar for ZZucker
-1
78
Member Avatar for Acidburn

Hey there, I've got a script in another language and I've set a writer from the script to python. Now I'm trying to send data back the other way... ie python -> to my script. However I've got nothing to reference in python, and i'm clueless. Can anyone provide assistance? …

Member Avatar for woooee
0
98
Member Avatar for nish88

hi everyone...... am designing an interface for security purposes where a user is allowed to enter a password to gain access... i want when password is entered its ********** that appear on the text box instead of password secret itself so that if someone is looking at the screen he …

Member Avatar for woooee
0
170
Member Avatar for scru

Is there a way to detect the internet browsers "registered" on the system my script is running on, and if possible get the location of the browser's executable? I don't mind if it requires branching the code by platform. And frankly, I don't mind if you give me a response …

Member Avatar for woooee
0
156
Member Avatar for IU34

yeah, I'm just keeping this thread open because I have another wrinkle. In my code [code=python]def prompt_house(): global gold prompt_hou = raw_input('>') if prompt_hou == 'examine table': print '''There are a lot of car magazines here. You flip through them and find 5 gold.''' gold = gold+5 prompt_house() [/code] (or …

Member Avatar for IU34
0
162
Member Avatar for renabada

1. (a) A positive whole number n > 2 is prime if no number between 2 and (inclusive) evenly divides n. Write a program that accepts a value of n as input and determines if the value is prime. If n is not prime, your program should quit as soon …

Member Avatar for Paul.Esson
0
371
Member Avatar for drjekil

I am totally new in biopython and its my first program.so may be i am asking stupid question. I am working with a text filelooks like this: #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD 1lghB A i 79.8 H H -24.58 1lghB V i 79.6 H H -22.06 1lghB H …

0
79
Member Avatar for xRuP7uR3x

Hello again. Before I begin I would like to offer my heartfelt gratitude to the DaniWeb community; this website truly is a wonderful resource for a new programmer such as myself, and the help and advice that I have received have been incredibly useful. I am currently working on a …

Member Avatar for dabear
0
78
Member Avatar for drjekil

I am totally new in biopython and its my first program.so may be i am asking stupid question. I am working with a text file.Every line in that file represents one amino acid,which has some value.But i need to separate those lines which has a value between 10 to 22.how …

Member Avatar for vl4kn0
0
139
Member Avatar for dluc8461

[code] Would anyone be interested in writing a small Python script for me. Approx: 90 lines of code it is required for (Blender Python). Your help would be much appreciated. More an Edit than anything. Existing Code below needs to be edited so that the rightKey and the leftKey will …

0
51
Member Avatar for Jasper11

Hey guys, im new here, Ive been learning python for the past month or two and have run into a bit of a problem. I have read a previous post on this forum with a similar problem. There answer was to flatten the list and then search it. This approach …

Member Avatar for Jasper11
0
8K
Member Avatar for clalexa2

I am trying to save a picture from a website ever hour. Can this be done? can anyone help me out?

Member Avatar for clalexa2
0
85
Member Avatar for bachmabt

This seems like a very simple process, but I cannot get the data out of the loop: I have a data file "slink.txt": [CODE]88 10112213 33332332 22011220 23110122 21231102 12222321 32131132 10023232[/CODE] I am trying to store the numbers in a 2 dimensional array: [CODE]f = open('slink.txt', 'r') rows = …

Member Avatar for bachmabt
0
147
Member Avatar for IU34

[URL="http://corvettecraz92.pastebin.com/f59db1508"](new code)[/URL] so, my new error message is 'local variable 'gold' refferenced before assignment.' now what?

Member Avatar for IU34
0
109
Member Avatar for IU34

yeah, another one...but this time in python! yay, more errors! :) first off, [URL="http://corvettecraz92.pastebin.com/f65e1cd3c"]here's the code..[/URL] (based off of chris99's code...the only example i could find for a text adventure game!) Now, my problem is where it says [code=python] elif prompt_p == 'examine sign': print """Behold the mysterious grating! For …

Member Avatar for IU34
0
285
Member Avatar for aot

I've been trying to get some .JPGs to show up in Tkinter but have had no luck so far. Up until now I was just using PhotoImage, which takes .GIFs, but it would be nice if I could expand and use other formats. Any ideas? Also, I know that wxPython …

Member Avatar for woooee
0
235
Member Avatar for aot

I've been using Eclipse as my IDE for python programming, mostly because it's free. However, as far as I can tell, its debugger is not that great. All I ever get are notices of what line the error occurs on (and what the error type is) and, while this can …

Member Avatar for ZZucker
0
149
Member Avatar for Laurence26

I add a new name to this script, but when I want to quit and save it gives and error ValueError: need more than 2 values to unpack I have no idea what it means can someone help me? If you want to modify the program feel free... [CODE]filename = …

Member Avatar for Laurence26
0
181
Member Avatar for Defcon106

Hi I'm a bit of a newbie when it comes to programing. I know the basics of computers but I have only just gotten interested in Unix and Python. If anyone has any advice on how to get started with it I would appreciate it. Well in any case I'm …

Member Avatar for Serunson
0
42
Member Avatar for strictlycustom

I'm trying to write a program that asks the user their hours and returns it to the main program, and then their rate of pay and returns it to the main program. I can't run the program because it is saying there is a problem with this part of my …

Member Avatar for strictlycustom
0
932
Member Avatar for fengle1

Hey guys, new user here, just taking a course on python and theres a simple task I'm trying which im failing. [B]I'm basically trying to get a program to validate user input based on rules that i define. Namely, num1 input and num2 input are integers which can not be …

Member Avatar for sneekula
0
109
Member Avatar for blue_misfit

Hi folks! This is my first python script! It will be executed within AvsP, which is an application for writing AviSynth scripts. It provides a full Python interface, for macros and other operations. Here's the code I have now: [code] # batchCreateD2Vs # by Derek Prestegard # Last Modified 4/3/08 …

Member Avatar for woooee
0
149
Member Avatar for Byrdc

I have written programs in Python that created files, arrays, and student grade reports. These few programs helped me to see some of the power behind Python to the point where I would like to become an expert in it. I have also programmed in COBOL, PASCAL, and "C" languages, …

Member Avatar for november_pooh
0
177
Member Avatar for jgritty

I'm sure this is stupidly simple, but I am trying to add words to two different dictionary files I have created. I think my problem is here: [code=python] myDict = Dictionary.Dictionary() myDict2 = Dictionary.Dictionary() [/code] Because when I write out the files, it writes the same thing to both files, …

Member Avatar for jgritty
0
305
Member Avatar for bbmatten

I am very new to Python and am about three weeks behind due to textbook problems. I am having a problem with one programming exercise. I have no idea how to even begin writting a program to determine the distance to a lightning strike based on the time elapsed between …

Member Avatar for vegaseat
0
76
Member Avatar for hudson5cp

Hi all, im a beginner to programming Python with Tkinter. I have a windows with 2 form: 1 Listbox and 1 Textarea that load a txt file. The Listbox contains a name of chapters. How can I make because click on the listbox scroll the text inside the textarea a …

Member Avatar for hudson5cp
0
754
Member Avatar for soomedh

Hi I am facing a problem with listvariable of listbox. I have a global sequence is python. which I am assignning as listvarible to a listbox widget. Listbox is neither showing default nor runtime values of sequence. Can anybody help

Member Avatar for soomedh
0
180
Member Avatar for sreelatha

Hi, I m a newbiee to python, I would like to write one program, and i want that program should run automatically when my system time is 10 am. Is it possible to do it, if so can any one throw a light to help me Any kind of help …

Member Avatar for sreelatha
0
145
Member Avatar for iiz

this is the python code [CODE]os.popen("explorer.exe " + os.getcwd())[/CODE] would jsut need a conversion to c or c++

Member Avatar for iiz
0
98
Member Avatar for erezlevi

hi, my name is erezlevi, and I want to know how can I create object and find examples about it. I need a way to register my script to windows so when using this: i=create (erez.levi) with i .Initialize (0) .Senddata ("12345") .Terminate () how can I write an Python …

Member Avatar for sneekula
0
96
Member Avatar for heshan

Hi All, I'm pretty new to python and still getting to know how python works. I want to associate some metadata to a function. In javascript I'm used to associating metadata with a function as follows. [code] foo.bar = "foobar"; function foo(){ } [/code] Whats the normal python practice to …

Member Avatar for bumsfeld
0
83
Member Avatar for fredomondi

the code is on a nokia N70 platform using python.the code is supposed to generate speech from written text.could anyone help me please. the code import appuifw,audio text=appuifw.query(u"type a word:","text") audio.say(text) the error message is: line 3,in? audio.say(text) AttributeError:'module' object has no attribute say

Member Avatar for bumsfeld
0
33
Member Avatar for srinivasysr2003

Hi, I am new to Python script programming and I have Python script also. I have below method which was written in C (Framemaker Development Kit). F_ApiSave(VarBookId, VarOutputFLBPDFFileAbsPath, params, *returnparams) "params" and "returnparams" arguments are of Object "F_PropValsT" and want to use above method from Python to send the values. …

0
54
Member Avatar for Defcon106

I was looking into a python program for the PSP. Is it worth downloading? Will it help me to learn the program when I dont have a PC handy? Also does anyone know if you can install Python to a portable harddrive and run it from any computer? Thanks in …

Member Avatar for Defcon106
0
76
Member Avatar for gormmark

hia guys i was just wondering if anyone can tell me if its possable to get unicode from a raw_input command. Im trying to put together a small piece of code to help me change decompyled russian text back to readable text, the piece of code im using at the …

0
54

The End.