Quantcast
Browsing all 14097 articles
Browse latest View live

ttkbootstrap.tableview.Tableview rowheight doesn't work for data rows

Cannot set the row height of ttkbootstrap.tableview.Tablewview data rows. I can change the heading but not the data rows.import ttkbootstrap as ttkfrom ttkbootstrap.tableview import Tableviewfrom...

View Article


Get an error to install mediapipe in python

I am trying to install mediapipe==0.9.1.0 package, but got an error:ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)ERROR: No matching distribution found...

View Article


Fixing Logic With Repeated Letters in Wordle

I'm not really sure what to make the name of this so I'll explain it a lot better here. I am trying to recreate the game Wordle, and I'll assume you know how the game is played. When you guess a word,...

View Article

Image may be NSFW.
Clik here to view.

VSCode how to stop this "type hint" popup when editing [duplicate]

In VSCode how to prevent this "type hint" popup from appearing? (Sorry I'm not sure what to call it). I think it comes from Pylance.

View Article

error: tf.compat.v1.app.run() while running model_main_tf2.py object detection

I have a problem with running this command in Terminal:python model_main_tf2.py --model_dir=C:\\models\\my_ssd_resnet50_v1_fpn...

View Article


Flask Webpage Issue

I'm using flask for deploying website, I've made app.py that uses flask to handle traffic, the traffic is an image that is inserted by the user, the model must take that image which is supposedly an...

View Article

Pandas resample for Monthly and Quarterly Return Calculation

I have this code:import yfinance as yfimport numpy as npimport pandas as pddf = yf.download('TSLA', start = '2023-01-01')df = df[['Close']]df['return_per_day'] =...

View Article

Logging into Pokemon Go through Pokemon Trainer Club API

I was checking out this old Pokemon Go project which makes a map of all nearby pokemon: text and wanted to see if it still works. There are some syntax things that have changed since the original...

View Article


How to do only page segmentation / layout detection with Tesseract (mode...

I would like to use page segmentation from Tesseract without running the OCR, as I have my own custom OCR model, and it takes to long to run page segmentation AND OCR. I tried using the --psm 2 mode in...

View Article


How can I customize the color and font style of Python decorators in VS Code?

I would like to customize my current color scheme and apply a dedicated color and fontstyle italic to Python Decorators. I found out how to do it for comments by editing the settings.json (see example...

View Article

Create SAFEARRAY of Strings in Python

I'm trying to call a COM method that requires a SafeArray of Strings to be passed as reference, which is then filled up with the method results. This is the code in VBA, which works flawlessly:dimr RC...

View Article

Image may be NSFW.
Clik here to view.

add a fill_between to the legend in python

I am trying to add my fill_between to the legend but it doesn't work?Why is it different than other plots? Here is the graph I have now:plt.scatter(stageheight,discharge,color='b',label='measured...

View Article

Wait for a function to finish executing before calling another function

I am building a Windows 10 GUI using PyQT5. The application allows the user to click a button, select an XML file that contains a bunch of file names, then creates a ZIP file from those names.I have a...

View Article


Read .dss database file in Python

I have a DSS database file and I want to extract the database schemas from the file using Python. I actually need to execute queries on this database but I couldn't find any good documentation to start...

View Article

Image may be NSFW.
Clik here to view.

add text to a legend in python

I am trying to add some text to the legend. It is about the text in the box. Another solution is that the textbox stays beneath the legend and doesn't move when you enlarge the...

View Article


Problem with "for" loop and "command" arg of CTkOptionMenu

Well, I have a nested dictionary:d = {'id': {'a': CTkButton(), 'b': CTkButton(), 'c': CtkOptionMenu()},'id': {'a': CTkButton(), 'b': CTkButton(), 'c': CtkOptionMenu()} ... }where id is:row indexkey of...

View Article

Image may be NSFW.
Clik here to view.

python openCV is detecting colors other then what i am looking for

I am trying to make a python bot for a roblox game where you hit spacebar whenever a white bar hovers over a yellow bar. However I am having a problem detecting the right color pixels. Whenever I try...

View Article


Edit axis. Matplotlib

I am trying to edit my axis's graphic but it is not working when I use plt.yticks([]). The program is still showing me the values. Can you help me remove them?Maybe the problem is because I am using...

View Article

SSL certificate verify failure when trying to run Bolt Python Slack app....

When trying to run the app to test if the event listener is working properly (python app.py in the terminal), it will output that the Bolt app is running, but then immediately follow up with 'Failure...

View Article

cant transfer data between bluetooth on raspberry pi pi w and raspberry pi...

I try to connect the two devices via Bluetooth Low Energy (BLE) and transfer data between them, but after the two devices connect to each other, they immediately disconnect. Does anyone have an idea...

View Article
Browsing all 14097 articles
Browse latest View live