14,945 Topics

Member Avatar for
Member Avatar for j.heller

Heyho users; I need to update a label in a window every x seconds to get an variabel ("res") which is up to date. My current code: def init(win): win.title("Ausgangsposition") win.minsize(800, 600) lab=Label(win, text="Aktuell: " + res +" Euro", bg='#40E0D0', fg='#FF0000') lab.place(x=20, y=30) btn.pack() def updater(win): ids = lab.after(1000, updater) …

Member Avatar for woooee
0
8K
Member Avatar for zenith_96

heya again guys - sorry for asking for help once again, but i think once i have my head round this, i'll sort myself out pretty well *python noob* :?: the prac is to add an option to change the price of a listed item in a catalog - this …

Member Avatar for Nivir
0
342
Member Avatar for Afroula

Hi everyone, I'm trying to extract text from between tags but only in certain conditions. <title> and <pos> are both children of <page>, but neither one is nested inside the other (i.e., they're siblings). Each <page> always has one <title> and zero to 5 <pos> sections. What I need to …

Member Avatar for Afroula
0
2K
Member Avatar for abaddon2031

Ok so I have been searching for several days on how to write a simple python script that will HTTP post to my server. I am jsut looking for some tips on how to write this properly cause as of right now im having to upload my add and update …

Member Avatar for abaddon2031
0
394
Member Avatar for ssbb

I have a homework to make a calculator(infix-to postfix) and I need to do it asap. I get always an error when I run this code(Enter a postfix expression (or nothing to quit): +54 Traceback (most recent call last): File "C:\Python32\infix to postfix", line 69, in <module> main() File "C:\Python32\infix …

Member Avatar for iamthwee
0
2K
Member Avatar for Rabee_1

Hello , I have to write a code that read a file in python and convert each chaaravter to 1, or 0 and send these digets to a a selonoid to make a strike or not to make ( brille printing ) is that possible ???? please need your help …

Member Avatar for iamthwee
0
462
Member Avatar for Fighter01

Hi, i have just started programming with python and i have beken given a task where i must create a python calculator. So far i have created the code (seen below) however i need help explaining it-e.g. saying what each part of the code does: from tkinter import * root …

Member Avatar for Fighter01
0
955
Member Avatar for tony75

HI I need to copy .dll files in C:\Windows\system32\ which is found or match in my my_file.txt file to C:\tools folder. my code not work and need also to found words that can match my_file.txt. so for example I have RICHED20.dll in my my_file.txt if the same file name"RICHED20.dll" exist …

Member Avatar for snippsat
0
1K
Member Avatar for WHchaz1027

Hello Guys, Good Day. I have this kind of error `OperationalError: no such table: table_name` when I make a query like `modelname.objects.all()` in **manage.py shell**. But I already did the ff: 1. settings.py > Databases > django.db.backends.postgresql_psycopg2 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), }, 'db_foo': { …

Member Avatar for WHchaz1027
0
691
Member Avatar for j.heller

hello daniweb community; The first window my application shows is this one: def init(win): win.title("Ausgangsposition") win.minsize(800, 600) getcurrentrateandcurrentbalance() btn.pack() Usage of win: win = Tk() win = Toplevel() methode getcurrentrateandcurrentbalance() def getcurrentrateandcurrentbalance(): threading.Timer(5.0, getcurrentrateandcurrentbalance).start() print "Hello, World!" + result lab=Label(win, text="Aktueller Kurs: " + res +" Euro/BTC", bg='#40E0D0', fg='#FF0000') lab2=Label(win,text="Aktuell …

Member Avatar for woooee
0
5K
Member Avatar for abaddon2031

I have a python script that connects to my database and updates it with a file that i specify. But i keep getting a syntax error on line 5 and for the life of me i can not figure out what it is. If someone could pointit out and how …

Member Avatar for abaddon2031
0
450
Member Avatar for varshaholla

I'm working on images and its working fine when code is out of function, and gives error when code is inside the function. My code is: def matching_image(): i = 0 resultlist_key = [] result_list = list() a_list = list() b_list = list() a_list.append(feature_matrix_ip)# feature_matrix_ip contains features of the query …

Member Avatar for varshaholla
0
5K
Member Avatar for abaddon2031

Ok i have a daily csv file that i am trying to get python to post to my database every day. I have used curl befor to post it but i want to set python up so that it post it for me is there a way to do this …

Member Avatar for abaddon2031
0
301
Member Avatar for nib.nalin

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 …

Member Avatar for slate
0
276
Member Avatar for j.heller

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;

Member Avatar for j.heller
0
397
Member Avatar for vegaseat

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).

Member Avatar for vegaseat
3
553
Member Avatar for j.heller

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;

Member Avatar for vegaseat
0
495
Member Avatar for trade19

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 …

Member Avatar for trade19
0
275
Member Avatar for tony75

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 …

Member Avatar for tony75
0
1K
Member Avatar for abaddon2031

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 …

Member Avatar for rrashkin
0
225
Member Avatar for abaddon2031

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 …

Member Avatar for abaddon2031
0
424
Member Avatar for abaddon2031

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: …

Member Avatar for abaddon2031
0
467
Member Avatar for Alex_24

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, …

Member Avatar for tony75
0
598
Member Avatar for sureronald

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 …

Member Avatar for Budy_1
0
726
Member Avatar for vegaseat

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 …

Member Avatar for Budy_1
0
73K
Member Avatar for tony75

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> …

Member Avatar for tony75
0
495
Member Avatar for varshaholla

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 …

Member Avatar for woooee
0
463
Member Avatar for abaddon2031

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 …

0
146
Member Avatar for Diego_4

# 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`

Member Avatar for mosquitohippy
0
255
Member Avatar for Diego_4
Member Avatar for mosquitohippy
0
218

The End.