15,193 Topics
![]() | |
Hi I am making a text game, and I have made up a basic framework. I have 2 questions 1) Sometimes, the python interpreter bugs out, like saying that I misspelt a variable 'Item' as 'item' even though I can see the correct spelling infront of me, and the only … | |
Hello Everyone Thanks for the message of welcome in a previous post. I have many questions but i have sleected this one as it represents my favourite piece of not working code (hahaha) but it has been studied and altered so i got this bugger working .. mostly . Explain: … | |
Hey Guys. I've been given a Major for school where I have to create a Mathematics program in Python. The problem I am having is that If i try to set up a canvas with a background image, the buttons will not show any more!? the second problem I am … | |
Hi All how are you?:). ok. lets begin. mmm, when i use py2exe applications became in windows classic mode. for example buttons corners became more sharp. if you cant understand , i will put down pic.-s:) and is there any way to eradicate that? sorry for my english:) :) | |
![]() | Hey guys, I am currently using subprocess module to open programs and stuff like that... What I want to know is; if in case I want to open Windows' Sound Recorder, how do I start the recording action? Like: [CODE]subprocess.call(location of the program)[/CODE] -will only open the Sound Recorder, but … |
So far i've got this and it returns something like: -2087276233 [code]import binascii def getCRC(filename): filedata = open(filename).read() return binascii.crc32(filedata)[/code] Someone told me that I had to use struct.pack or struct.unpack to change it to hex values. I am not sure which type to convert to and would like some … | |
Hello everyone Just saying hello before i rip into the many questions that i'm sure will occur. I'm brand new to Python programming (and in fact any programming since Arexx on the Amiga - anyone remember that? I'm here cause i signed up at python-forums.org and found it is only … | |
hi im making some website login checker. all thing is almost no problem except resulted save function. here is sample login id and password for test. bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 to test this source in python,need to make some text file "daum.txt" and insert bkozluxvghzb67:ukrnvs37 kicgnudgreuq10:atzjzp32 this two account in there. i … | |
Hi All, I have an issue regarding multi threading on windows XP : I have some x number of port commands which I have to send one by one to a device & then store the device response in an excel file. I used the unittest module to make a … | |
Hello! I've been given a task where I need to compare two strings of DNA for similarity given a location. There are two files: One which contains the alignment locations and the string of DNAs and one that contains the location that I am comparing. So far, I believe I … | |
Hello, I am having some terrible issues getting data formatted in a way that is useful for me. All I am trying to do is read a file that has several points of data in comma delimited format, and break each line into multiple variables (just need to grab each … | |
Is there a way to place widgets on pixel coordinates rather than row, column coordinates in tkinter? For example, if I'm using grid, if I have a 20x10 Text box at row 0, column 0 and want to place three buttons to the right of the textbox, one button over … | |
Hi all. Currently I am (trying to) writing code to read information from MS Access using win32com. I was wondering if anyone could help me with some code to do this. I am completely stuck! I have used win32 before for excel, but I’ve never used access before and the … | |
Playing about with python I thought about trying to write a program that gets a simple text file eg. hello %s, and using an adress book, loops through it, changing the %s every time into the next name in the adress book, using a queue. But it just doesn't want … | |
Hi, I have recently started trying to teach myself python, I've watched a few video tutorials and am reading "Learning Python". I have been making an Mp3 player and have hit a point that I cant work my way past so was hoping some kind person here could help me … | |
My question as below: 1. How to save result text to HTML in Python? 2. If i want continue append more result text in the same HTML file, how? | |
Hey guys, Say I had the following list: [1, 2, 2, 2, 3, 4,4] Let's assume that the list will always be integers. Does python have a built in feature which would take a sorted list, and then return the frequency that each element occurred. For example: 1 -> 1 … | |
Hi, I got a staticline I want to resize automatically following the sizer, but it never resizes, and I have to resize it automatically. What's the problem? | |
![]() | Hey guys... I was recently working on a program, which opens a music file using Windows Media Player...so I tried: [CODE]subprocess.call("C:\Program Files\Windows Media Player\mplayer2.exe",loc) # Where 'loc' is the location of the file[/CODE] But then I got to know that it won't work and that I have to use: [CODE] … |
hi all... ok so i have a file and what i wish to do is read all the lines usilng readline() then for everyline i need to read and match lines and form groups. how i need to do this is that say for example... line[0] match move to line[3] … | |
Hi! I'm trying to search a html site for a spefic word and print the result thats x rows after that word. If the html page looks like: "Hello welcome to daniweb" I want to search for welcome and look for what the next word is ("to" should be the … | |
I have a lot of directories that start with "td." for example i have: td.10000 td.11102 td.00384 td.35454 td.32356 Is there a way in which i can tell python to remove all directories that start with "td." ? If so, how? | |
So I feel rather foolish for this, but I haven't used command line often. I'm using sys.argv to gather arguments from the command line. I'm saving one in particular to a variable called test. It is suppose to be a boolean; however, passing in True or False still renders if(test): … | |
So, I've started writing a text adventure in Python, and already have the first map idea figured out, but I don't know where to start with defining a variable for each room. I know about the simple stuff, such as (represented as it would be in IDLE) [code=python]>>x = 4 … | |
Hi, I'm a newbie to python and I need to extract numbers from a path name. A path name such as: /grups.google.com/grup/cmp.lng.pythn/browse_thread/thread/8_ee63e_[B]17[/B]del_0c12d And I'm trying to get it to take out the 17. I thought I could just do: [ICODE]det file = /grups.google.com/grup/cmp.lng.pythn/browse_thread/thread/8_ee63e_[B]17del[/B]_0c12d index = det_file.find('del') dent = det_file[index[-2]][/ICODE] This … | |
Does anyone know a good internet site where I can 'park' my Python code? Easy download, upload, and search. | |
I am making a text game, and what I want it to have one console window for showing the game, then another one next to it showing the players stats. Is this possible ?? | |
Ok, I made a very simple function to keep track of variable Gold...Ok thats easy, everything works fine, except I made the variable = 200 and when the function performs it adds like it is told to do. But I want it to evolve as I add to it, and … | |
Hi, I am working out a program which involves emailing through a SMTP host I dont have control over... I can mail through PHP code but cant do so through python, because I get the following error Traceback (most recent call last): File "Teshting.py", line 7, in <module> smtp.sendmail('Sender','thenameizprayag@gmail.com','Test') File … | |
Hello, I have a structure like this: [code] package/ __init__.py subpackage1/ __init__.py baseclass.py subpackageA/ __init__.py ClassA.py subpackageB/ __init__.py ClassB.py [/code] in package/__init__.py and package/subpackage1/__init__.py I am importing the subpackages so that in my app I can just call import package instead of having to import each subpackage individually Here is … |
The End.