veronica, to python
@veronica@mastodon.online avatar

Any Qt + Python devs out there with any experience on calling deleteLater() from the Python side?

I have some costly dialogs I want cleared on close, and so far I've been running deleteLater() in the closeEvent, which is clearly a little risky. I do get the very rare segfault especially if I close one particular dialog which has a QTimer singleShot call. If the deleteLater() is called when it is running, I get a RunTImeError.

#Python #Qt #PyQt #OpenSource #Programming #Code

villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar

I'm enjoying improving my naive folder/image browser in
https://github.com/villares/sketch-a-day/blob/main/admin_scripts/folder_browser.py

Every time I explore making without a proper GUI library/framework, drawing directly on a window with , I get something useful very quickly with lot's of control, but on the other hand, the code starts getting "complicated" quickly.

is awesome for small forms/panels and, as the name implies, simple GUIs. I quickly got blocked by it for this use case. Maybe one day I'll learn and "make the jump" to proper GUI building. But the initial complexity is daunting. I'm probably ignoring/overlooking the initial complexity of py5 too, because I'm so used to it and the subjacent way of doing things!

birnim, to foss

How come there are no widely used apps developed in or / ? Am I missing those somehow or is not an appealing ecosystem/language for development?

pixeltracker, to vscode
@pixeltracker@sigmoid.social avatar

Turn into a powerful code editor 🧑‍💻💫 for both and notebooks in just a few steps 💪🐍

🌎 https://www.fabriziomusacchio.com/blog/2022-11-06-vscode_for_python/#setting-up-vs-code-for-python

Stark9837,
@Stark9837@techhub.social avatar

@pixeltracker @guetto

For research projects where I use and , I actually like using ! It is just easier to run code and view my plots.

With , you can even have widgets like sliders and other stuff.

It just speeds up my prototyping and makes me more productive. Naturally, only my plotting code and math exist in the .ipynb, and the rest is just imported from normal .py files. Thus, it allows for quick conversions once the prototyping is done.

@Python

computingnature, to random

Make your next discovery using , a visualization method for large-scale neural data. Paper now out: https://www.biorxiv.org/content/10.1101/2023.07.25.550571v1 (click on the gif)

gif of neural activity re-sorted by Rastermap algorithm

computingnature,

Learn more on our github: https://github.com/MouseLand/rastermap. is fast thanks to , , , and -learn. The GUI is powered by and , and supports npz, npy, mat and ophys files.

flipsideza, to python
@flipsideza@fosstodon.org avatar

I do love that just when i think i cant do something with a QT interface it surprises me and lets me do exactly what I need. Its been a productive day 💪

ProfessorCode, to python
@ProfessorCode@fosstodon.org avatar

After installing PyQt with pip in a GNOME Wayland session, my application doesn't share my system theme.

This problem doesn't exist if I use PyQt from the distribution's repository. However, this also makes it difficult to use virtual environments for my applications.

Does anyone know why this happens? It seems to be specific to GNOME as I didn't have an issue like this before.

Stark9837,
@Stark9837@techhub.social avatar

@ProfessorCode

It could be possible that it is just set not to. Maybe there is a default setting or initialization. I would check if you could supply it.

Also, I've only used this in a environment, so maybe it doesn't work in the way you are running it. Just build it as an executable and see if it works then?

hirad, to programming

After spending almost an hour (and without any prior experience with custom widgets), finally managed to create my first custom listWidgetItem

hirad, to programming
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • DreamBathrooms
  • everett
  • magazineikmin
  • Durango
  • InstantRegret
  • rosin
  • Youngstown
  • love
  • slotface
  • GTA5RPClips
  • kavyap
  • ethstaker
  • Leos
  • ngwrru68w68
  • thenastyranch
  • tacticalgear
  • cubers
  • modclub
  • osvaldo12
  • cisconetworking
  • tester
  • khanakhh
  • normalnudes
  • provamag3
  • anitta
  • JUstTest
  • All magazines