15,185 Topics
| |
Visual Tkinter is Python 2.6 GUI builder. Visual Python programming language for advanced Visual Python IDE that offers the possibility. As of December 2008 starting and writing fasting Editor. This software is using Scintilla editing component. <URL SNIPPED> | |
images = [createProductForm.productImageModel.data, createProductForm.productImageModel.data] for image in images: if image.filename == '': print('Image must have a filename') return redirect(url_for('createProduct')) if not allowed_image(image.filename): print('Image extension is not allowed') return redirect(url_for('createProduct')) else: filename = secure_filename(image.filename) file_path = image.save(os.path.join(app.config['IMAGE_UPLOADS'], filename)) print(mysql.format(file_path)) mysql.connection.commit() print("Hello yes!") print("images saved") If i were to convert the image … | |
I am a developer who recently started working on my own, and I've come across some projects that I can't handle by myself (mostly in React). What resources would you guys recommend for finding / putting together a team of remote developers to join me on these projects? | |
Hi, How do i store files into blob datatype into mysql via user input with python? def read_file(filename): #Convert digital data to binary format with open(filename, 'wb') as f: photo = f.read() return photo @app.route('/createProduct', methods=['GET', 'POST']) def createProduct(): createProductForm = CreateProductForm() msg = '' if request.method == 'POST' and … | |
Hi all, Have my below program: from tkinter import * from tkinter import ttk from tkinter import messagebox class Application(object): def __init__(self, master): self.master = master qPlacement = IntVar() self.cc = ttk.Combobox(self.master, textvariable=qPlacement, width = 5).place(x = 5, y = 30) Button(self.master, text = 'Click Me', command = self.popCombo).place(x = … | |
I'm writing a utility that will likely be called by a script that uses `argparse`, but should be useable by any script. The engine object constructor needs a dozen or so parameters to tune its behavior. The question is: What is the best way to allow the caller to send … | |
I am good in different languages, that is: Java, python, C#, VB.NET, php, javascript I have been programming for a while now it's about 2 and half years but the issue is when I focus on one language I tend to concentrate on it more than the others which leads … | |
Dear software developers, We are researchers aiming to understand developers' knowledge needs and program comprehension. Our intention is to support practitioners in selecting tools that can facilitate developers' tasks. Moreover, we hope that our research results in the development of new tools that are customized to the actual needs of … | |
Hello. I am making a database using SQLite. Then I need to make an API with functions that returns information about that database. Then I need to print out a report. However, when I try to return an answer to a query using inputs, nothing is returned. I either get … | |
Hello everyone, I am working on a project, which corrects user input (reads input stream from keyboard with keyboard module hook) based on some rules. I am trying to find the fastest way to delete and write the corrected word, after a user enters a wrong one. Currently I am … | |
Hi Try to extract password from my chrome browser but I got this error below How can I solve this problem? Traceback (most recent call last): File "Chromer.py", line 13, in <module> password = win32crypt.CryptUnprotectData(website_data[2], None, None, None, 0)[1] pywintypes.error: (13, 'CryptProtectData', 'The data is invalid.') | |
I am trying to create a new function that will retrieve dates and claims for a desired year. I am stuck on the last bit of code. I need to use a return command at the end. I am thinking I need to append my list, but not sure. def … | |
Am still at school and am doing programming, and I choose these forum because it will be helpful for me in gaining the knowledge and experience on c++ and many other programming language. | |
Following The New Boston on youtube, he is using is in an if statement and doesnt show any error, on mine I get a syntax warning and it asks if I meant ==, but still displays the output the way it should be. | |
when i run the program i am able to delete the things in tree view . but in list it is not getting deleted. the program i have shown down is cart of my program . hence when i delete and open again it is showing my deleted row pls … | |
Hi all, I am new to C++, I am studying a C++ code and would like to learn how to implement it in Python. I encountered the following: 1 unsigned short arr1[2]; 2 unsigned int * arr2 = (unsigned int *) arr1; I tried to write a C++ code to … | |
Hi, could you please let me know what should I learn first about programing? I mean, may be I need to learn HTML, C++, Java, read a specific book, I don't know where to start and hope you can show me the way, please!! I would really appreciate it | |
This is Python 3.4.2 The documentation says that s2 = s1.strip('a') will strip out all the 'a' in s1. When I run it, only the leftmost character - and only if it is 'a' - is stripped. The default s2 = s1.strip() takes out all whitespace. PS: I understand that … | |
I have been trying to solve this error for almost 2 days have tried various posts from multiple places like github, stack overflow, and even daniweb. None have helped so far. So expecting atleast explaination for issue if you don't have answer. So here how I am creating database in … | |
I have a Java installation and I have only access via bash. How can I check the Java version from command line. | |
I solved a problem some day ago. In that problem you had to format an integer. I found it hard to solve. So here I am sharing my problem with you. Problem: Read an integer variable and print it in which the digits are separated into groups of three by … | |
I have a list of tuples where each tuple within the list contains 3 elements. 1. Is the year in 4 digits i.e 2014 2. Month in integer i.e from 1-12 3. And another integer value which is the number of months needed to be subtracted. So if the date … | |
I am tring to create an IP locator which can show any IP location and registered country in python but I can not if there anybody to help me I would be happy thanks. | |
In python how to write a program which takes a number of days from now - 100 days, and find in which month that future day is. | |
hi,I'm trying write a AI calculator program on Python ,can help me how to start write this coding | |
this is a small part of my code where i created the collision but the issue is that it still doesnt work i have used also the distance formula to figure out the collision still nothing showed up; please look at the screenshot and help! | |
Hello! I am creating a turtle code where I want to create multiple circles on a map. However, my turtle is currently coninuing to go around in a circle over and over again, and so the other circles cannot happen. Any help or advice will be greatly appreciated! Thanks! This … | |
which code can i use to make enemy shoot at the player non stop and when the bullet catches the player the health decreases any kind of help i appreciate - pygame | |
Hi. I'm trying to write a program on Python that uses a turtle that shows a map and draws a line from one point to another after the user enters where they want to go from. Can anyone help me start this code? Thank you! | |
WAP to check student is first ,second or third . If number is greater than equal to 60->>first If number is greater than equal to 45->>second If number is greater than equal to 33->>third If other than that ->>fail |
The End.