15,179 Topics
| |
roblem Minesweeper is a computer game that became popular in the 1980s, and is still included in some versions of the Microsoft Windows operating system. This problem has a similar idea, but it does not assume you have played Minesweeper. In this problem, you are playing a game on a … | |
hello daniweb community; After a click on a button I need to "direct" the user from the current window to another, like you may know it from installations ("Yes I accept TOS"->click->new window please select installation path). Kind regards; | |
If you use the Windows OS, then IronPython allows you to create a GUI program taking advantage of the .NET framework. You also have the option to compile the program into a standalone .exe file (and the needed .dll file). | |
hello friends; I'v used the tutorial (http://www.daniweb.com/software-development/python/code/216550/tkinter-to-put-a-gif-image-on-a-canvas-python) but now the animation of my .gif doesn't work. I have used much more .gifs (animated) to check if the one was broken but no animated .gif is working in my GUI. Any idea how to fix this problem? Kind regards; | |
hi I want to know the easyest way to readline() or readlines() or read() a file so far I have this >>> file = open( 'write_total.txt', 'r' ) >>> file.readlines() ['Line 1\n', 'Line 2\n', 'Line 3\n', 'Line 1\n', 'Line 2\n', 'Line 3\n'] >>> I am not sure why this repeats … | |
Hi Please I need your help with this script. I have an logfile.xml and I need to picks the file names of the path but not duplicate and writes them into a bat file, like copy %windiw&\system32\<filename> %1% Output example for my .bat file should look like copy %windiw&\system32\ dbghelp.dll … | |
I have a very large csv file that had different values for certian fields and im wanting to split it up so that each of the different values gets put into its own csv file for example all of the fields whos value is 1110 would get read and written … | |
Ok so im working on a script that reads a large file then splits it up into seperate files using the field in it called PC Number. What im wanting to do is check if the file already exist if it does then it just appends the new data but … | |
SO im working on a python code that reads a csv file with 1600 entries roughly and i am splitting them up on the collum value of pc numbers. I keep getting a error that states " Traceback (most recent call last): File "C:\Users\HatterX\Desktop\test\test25", line 50, in <module> data.sort(key=lambda x: … | |
so heres the code import pyHook, pythoncom, sys, logging file_log = 'C:\\LogFile\\log.txt' some other non important stuff here so the issue is that everytime i try to run the program it says that pyHook is not a module. I have downloaded it for my system but it still doesnt work, … | |
An image resize script that I have written to scale images from a digital camera. I couldn't used the gimp (my favourite image editor) to scale each of them one by one. This script takes two arguments which are both directory names. The first one is the directory containing images … | |
Using the Python Image Library (PIL) you can resize an image. Several filters can be specified. ANTIALIAS is best for downsampling, the other filters work better with upsampling (increasing the size). In this code snippet one image of each filter option is saved, so you can compare the quality in … | |
Hi I’m working right now with computer forensics. I have an xml file which I have saved from Process Monitor . The file look like <?xml version="1.0" encoding="UTF-8"?> <Company>Sysinternals - www.sysinternals.com</Company> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6de80000</BaseAddress> <Size>24576</Size> <Path>C:\Windows\system32\Riched32.dll</Path> <Version>6.1.7600.16385 (win7_rtm.090713-1255)</Version> <Company>Microsoft Corporation</Company> <Description>Wrapper Dll for Richedit 1.0</Description> </module> <module> <Timestamp>130412795960224800</Timestamp> <BaseAddress>0x6f3b0000</BaseAddress> <Size>65536</Size> … | |
I have two functions declared in my program, and i want to use the variables in another function to display the matched images. My code is: def messageWindow(): win = Toplevel() path = 'C:\Users\HP\Desktop\dataset' COLUMNS = 12 image_count = 0 for infile in glob.glob(os.path.join(path, '*.jpg')): image_count += 1 r, c … | |
Ok so i didnt know where to post this but i am getting two errors while useing cURL. The first says cURL: (26) coudn't open file "test.csv". The second one keeps saying please upload a file. I have been trying to fix this for over a hour now and can … | |
# I want to print a string in uppercase and backwards# string = raw_input ("Favor ingrese su cadena-> ") print string.upper() #this one prints only in uppercase# `HELLO` #I want to print it backwards# `OLLEH` | |
` >>>backwards('real') laer # besides I want to print it in uppercase # LAER ` | |
Hi guys I have already posted code to do with a solar system but this is my second go at it to make it better and more clean but i am have trouble making it actually print out the result in turtle. Could some one please help me? I think … | |
This handy little utility determines the size of a folder and it's subfolders in MBytes. | |
#### Function secondLoop has the same components with the additional lines # number = len(sentence) while number != 0 #While flag==True letter = input("Enter letter: ") # letter is asked in function again if letter not in enteredLetters: find = sentence.find(letter) if find == -1: print("Letter is not in word") … | |
hey with this code that ive written, im not sure why its not outputting a value for the BMI.. can anyone help?? thanks def application(environ, start_response): headers = [('content-type', 'text/html')] start_response('200 OK', headers) formdata = cgi.FieldStorage(environ=environ, fp=environ['wsgi.input']) if formdata.has_key('Mass') and formdata.has_key('Height'): Mass = float(formdata.getvalue('Mass')) Height = float(formdata.getvalue('Height')) BMI = formdata.getvalue('Mass/(Height*Height)') … | |
I wanted to display the blue mean value in the text box, but it is giving me an error blue.set(B_mean1) AttributeError: 'numpy.ndarray' object has no attribute 'set' And this is my code: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR … | |
i'm taking the image from the user, and displaying it using label. Now i have to use that image for further processing. my code is: from Tkinter import Tk, Frame, BOTH from Tkinter import * import cv2 from collections import * from CBIR import * from experiment import * from … | |
| Hey guys, I'm trying to get all links on a website using BeautifulSoup, Queue, Threading, and urllib2. I am specifically looking for links that lead to other pages of the same site. It runs for a few seconds, going through about 3 URLs before giving me the error: Traceback (most … |
It is possible to read/write the binary of any file with using Python? `open(file, "b")` only works for windows `"rb"` `"rb+"` `"wb"` `"wb+"` `"ab"` `"ab+"` works but `.read()` just prints the file contents not its binary | |
Hello, I have a mac os specific problem with iPython. The code I have works fine by using iPython on a PC by launching it with --pylab. On mac os, I try to do it with ipython-qtconsole-1.0.0-py27_0 My code is made for recognizing characters on an image. The part of … | |
I have my outlook mailboxes in this structure mailbox1 -Inbox Mailbox2 -Inbox Current script is able to access Inbox of mailbox1 as it is my main mail box where as mailbox2 has been added into my profile. I want to be able to access Inbox of Mailbox2 import win32com.client import … | |
hello, i want to know whether i can display an image from the path i have selected? like, i have a path for example: c:\user\desktop\33.jpg, and i want to take only that jpg file and i have to display that image using label or something. If it is possible, i … | |
position = 0 tasks = [] task = [task1,year,month,day, hour, minute, second, microsecond,str(cuando),cuando]# this is a list that is filed into another list# while k < CantTareas : ans = raw_input ("did you finish any of your tasks? (yes or no) ") if ans == "yes": k = k + … | |
Hi, I'm about to start learning Python and want to find an IDE. For example something Visual Studio like stuff. WYSIWYG so when I write code, I should have a button somewhere to click and see the output. For free and for Windows and Linux platforms. I downloaded Komodo Edit … |
The End.