15,190 Topics
![]() | |
Hi there! First off, let me say I HAVE Googled the subject, but all provided functions... didn't work. Simply put, I want a function that closes my Python script, and then reopens it. I tried making my own, which would open the same file, sleep 2 seconds, and then close, … | |
I know this is a homework question, but I have reached the end of my rope and really need guidance. I have had four years of Java programming then walked into my CS 3 class and was given an assignment in python. I have never worked in Python before but … | |
Hello I have a problem that I can't understand. This errror return when I try to compile: name 'image_name' is not defined. This is my code: [CODE] def LoadImage(image_name): file_name = self.clssSnc.sprites[slf.clssSnc.stat] if self.clssSnc.stat == 0: file_name = self.clssSnc.spritesi[slf.clssSnc.stati] #carrega a imagem do cenĂ¡rio ou do personagem fl = None … | |
Hi, everyone I have a question about reading column data from file. helium.dat He 1.31 He 1.32 He 1.39 He 1.41 He 1.38 He 1.39 He 1.21 He 1.45 He 2.31 I want to print just the 2nd column data(number) from helium.dat like below 1.31 1.32 1.39 1.41 1.38 1.39 … | |
I have searched the forums and could not find a direct answer to my question, it's probably too simple and i'm over looking something. It's my first day with Python, I'm in the process of developing a program that converts a given float integer into a variety of different things. … | |
hi all, i have loaded a dll with stypes.cdll and i want to get thta dll's parameters and method like when you write: <'the dll handle'>. and just after you put the dot a list appears to show you the methods or like when you get a dir() from a … | |
I'm using [B]pygtk[/B] and [B]glade[/B]. I built the UI using glade and I loaded it using the gtk.Builder. Now, I'm trying to retrieve the a menu item using gtk.Builder.get_item() so that I can update the submenu, but it returns a gtk.Action object. There seems to be no way for me … | |
hello guys... i have a bit of a problem with my assignment im working on :( what the problem is there is a function which accepts a string, a keyword and an array of keywords to replace the keyword occurrences with for eg, def function(text, keyword, keyword_list): and for eg, … | |
i know there is not anyway to send ussd in pys60 yet but i want to know can somebody make a module or something to send ussd with python or does anybody know the process to make such a module | |
Hi I am trying to pull some data from a Web site: [url]http://schoolfinder.com[/url] The issue is that I want to use the advanced search feature which requires logging into the Web site. I have a username and password, however I want to connect programmatically from Python. I have done data … | |
Hi, I'm trying to work out this problem in my code where i am trying to replace a keyword with another word. The problem I am running into is that when the keyword is present inside of another word. Eg, "I'm trying to debug a problem but the debugger is … | |
I don't have a problem reading in one big array of numbers from a file. I can't figure out how to read in multiple arrays that are delimited by certain characters. For example, my dataset has the following format. #BEGIN 1 1 .1 .2 2 .8 .3 3 .9 .5 … | |
Ok I'll get straight to the point, how can a create a search box? You know, you type something in and it filters out the ones that don't match. Is there a special widget for this? Or would I have to create a normal lineedit widget and do all the … | |
Hi guys, i am a beginner with python, (in fact, i started yesterday) I have some experience with C and CPP. So somethings in python just surprises me(happily, i dont want to say confuses) [code=python] #consider there is a file object infile while 1: line=infile.readline(); if not line: break print … | |
HEY! -- replace multiple keywords (bit more complicated) I posted a thread previously on replacements for a keyword, but the suggestions that were given were great but didnt do the job.... would love any more suggestions to crack the mystery! the previous example i was given in my other thread … | |
Hey, all! I'm new here, and needed somewhere to get an answer dealing with Python. I am working on developing a small bit of code, but I don't know where to start. I'm kinda new to python : ( I am looking to deveolop an Instant messenger sort of thing, … | |
Hi This is my first ever python assignment and I am sort of stuck...:'( I need to fit a text inside this box (textwrap). I think I figured out the code for the insert, but I also have to make the box with two whitespaces on each side of the … | |
Hi All, First, let me say that -daniweb- has been a great help for me as I've gotten back into programming over the last 6 months (after a 10 year respite). I've put together some decent code, but Python finally has me stumped. I have some code that generates some … | |
I have been using doctest for a while and just recently started using the logging module. Each works fine separately, but they don't seem to play nice together. It looks like doctest hijacks sys.stdout to do its thing. My logger prints to the screen if not in batch and to … | |
Greetings all! I'm a new python programmer working for a physics lab. I've got 11 numbered .txt files, all laid out in the exact same format shown below: ITEM: TIMESTEP 0 ITEM: NUMBER OF ATOMS 55 ITEM: BOX BOUNDS 0 20.4 0 20.4 -0.0001 20.4001 ITEM: ATOMS 0.883194 0.969209 -1.02474 … | |
hey all... really in need of help, please! any feedback welcome!!! i want to replace one keyword with multiple words. i.e replacement words = ['wholegrain loaf','loaf'] 'I went to the bakery to pick up the KEYWORD. When I got home I cut up the KEYWORD and gave some to the … | |
Is there any way to edit the album art of mp3s with python or a python library? This is getting frustrating! | |
I'm really enjoying python in my Netbeans IDE. I would like to know extensive difference between these version of Python: Cpython, Jython, Iron python, pypy .....etc (You can add it). What is the main difference? Why all these versions? What are end products of all these versions? (.exe, .jar, etc). … | |
![]() | hi again im starting to learn tkinter but i cant find any good tutorials if you know of any then can you please tell me thanks |
![]() | Does any one know of any modules which could help me in comparing lists. I have the following problem. There are lists with names and there are lists with associated weights. For example, a = ['a', 'b', 'c', 'd'] w_a = [0.25, 0.25, 0.25, 0.25] b = ['a', 'c'] w_b … ![]() |
i want a tool to convert the python files to java.Since i am completely unknown to python and want some python files converted to java...Can anyone please help me ??????U can reply to me directly on [email]tejas.dunk@gmail.com[/email] | |
Hi there! I'm having a very annoying problem... simply put, I have a .pyw file, and it works great! However, whenever the script runs the os.system() function, I get a brief CMD Prompt window, which immediately disappears. It's quite annoying! Is it possible to run os.system() commands without having the … | |
Hi there! My application is going very well... however, I have a couple questions... mainly, graphical stuff. [LIST] [*]How do I make it so the application runs in full screen? (I know I can do it by changing the preferences in the command line, but that's the ghetto way...) [*]How … | |
Hey everyone, Here's a question that should be pretty simple that I haven't found the answer to: if I'm using a function that takes some characters in quotes, what do I do if I want quotes to be some of those characters? I.e, if my code says if c in … | |
I'm using mutagen in a project I'm working on, and I want to edit an mp3's album art. I have the binary data stored in a variable. How to I write it to an mp3's id3 tag? |
The End.