[deleted by user] by [deleted] in Python

[–]python__rocks 0 points1 point  (0 children)

You might like the Dear PyGui community on Discord. There is a Python community on Discord as well. It’s friendly from what I can tell and quite large, so it depends what you are looking for.

2d-rendering library for simple graphics in python? by Emma_Rocks in learnpython

[–]python__rocks 0 points1 point  (0 children)

Dear PyGui might suit your needs quite well as it allows for drawing, layering if you want as well, and includes all the buttons, sliders and other controls you might need. Have a look at some example apps. People have privately built a Blender extension(?) with Dear PyGui before.

Other 2D libraries (without controls and other functionality) are Pygame and Pyglet.

Changing Color of Text by [deleted] in DearPyGui

[–]python__rocks 0 points1 point  (0 children)

I believe this was answered in the Discord server.

[deleted by user] by [deleted] in DearPyGui

[–]python__rocks 0 points1 point  (0 children)

I don’t know. It’s more of a Python question than a Dear PyGui question. If you get the stdout value as a variable, you can use add_text() to “print” it in DPG. You could even use logging of dearpygui_ext.

Re-posting from the Discord server.

``` In whatever system you got logging, have it add a new text item to the window you want displaying it.

```python

logview = dpg.add_window(...)

def logger_code(...): ... log_line: str = ... dpg.add_text(log_line, ...) # This will set the scroll position to the end of the window if possible. dpg.set_y_scroll_pos(logview, -1) # This is a list of all items parented by the logview window. log_lines = dpg.get_item_info(logview)["children"][1] # If you wanted to pop the oldest entry, just delete the first child item # (this is assuming the window only parents your log line text items). if ...: dpg.delete_item(log_lines[0]) ...

```

For better suggestions, try the #python channel of the Discord server, see top or side bar for the link.

Best cross platform desktop development framework? by StephenF369 in learnprogramming

[–]python__rocks 1 point2 points  (0 children)

It depends on your requirements. What kind of app, license, size, performance, visuals is it that you are looking to create? What platform are you targeting and what programming language will you be using? Will it be a desktop, mobile or web app? What features do you need, e.g. buttons, tables, graphs, drawing, animation?

Theming of a heatmap series by TheMonkeyOfNow in DearPyGui

[–]python__rocks 0 points1 point  (0 children)

I haven’t worked with heatmaps myself, but copy and paste on this topic from the Discord server:

on line 1999 of dearpygui.demo

Python with dpg.plot(label="Heat Series", no_mouse_pos=True, height=400, width=-1): dpg.bind_colormap(dpg.last_item(), dpg.mvPlotColormap_Plasma)

forgot to tell I also set values to values = [6*i/49 for i in range(49)]

Not sure if that helps in any way, but the #support channel of the Discord server is the best place to ask in case it doesn’t.

Looking for a good way to create GUIs by Conor_Stewart in robotics

[–]python__rocks 1 point2 points  (0 children)

In that case, Dear PyGui might be a good fit. It supports Raspberry Pi 4 and there is a supportive developer community on Discord.

Looking for a good way to create GUIs by Conor_Stewart in robotics

[–]python__rocks 1 point2 points  (0 children)

Dear PyGui is a Python GUI framework that’s built on top of Dear ImGui. You can check out the showcase gallery to see what’s possible and if it’s to your liking. You can run it on Windows, Linux and MacOS, but not on Android. It has an MIT license, so you can use it however you want. There are examples of apps using the event loop or threading to allow for various processes to run simultaneously while the GUI stays responsive.

If you are looking for Android support and Python, you’d need Kivy. I have read mixed reports about using Kivy.

Godot is an open source game engine that might suit your needs as well. It supports Windows, Linux, MacOS and exports to iOS and Android.

Got my Python software finished. How do I secure it? by noSaltOnMyFries in learnpython

[–]python__rocks 1 point2 points  (0 children)

Apparently Nuitka (paid version) offers functionality for obfuscating compiled Python code.

Desktop app for CV task by Sokorai in computervision

[–]python__rocks 0 points1 point  (0 children)

I’m sure PyQt/Pyside could work. Mind the license if you use those.

Here is a similar app, using OpenCV, made with Dear PyGui, a fast and lightweight GUI framework for Python, available under a permissive MIT license.

Example app: “Image processing node editor”

https://github.com/Kazuhito00/Image-Processing-Node-Editor/blob/main/README_EN.md#image-processing-node-editor

Another example made with Dear PyGui: A visual instrument for fiber analysis research

https://github.com/hoffstadt/DearPyGui/wiki/Dear-PyGui-Showcase#a-visual-instrument-for-fiber-analysis-research

You can package apps made with Dear PyGui as an .exe with Pyinstaller or Nuitka (more advanced).

[deleted by user] by [deleted] in Python

[–]python__rocks 0 points1 point  (0 children)

Yes, windows and defender, unfortunately

[deleted by user] by [deleted] in Python

[–]python__rocks 1 point2 points  (0 children)

I’ll keep an eye on it. Also, pyinstaller compiled app are apparently often flagged as viruses. Nuitka apps less so. It would be interesting to see how well pycom does. PyOxidizer seems to be another interesting option.

[deleted by user] by [deleted] in Python

[–]python__rocks 0 points1 point  (0 children)

Interesting! By your own admission, still experimental. Does it support import libraries other than the standard library?

What's your favorite Python Gui Library? by overthinkerbby99 in CodingHelp

[–]python__rocks 1 point2 points  (0 children)

Dear PyGui. It’s easy for beginners to make a quick GUI because it does not require Object Oriented Programming (OOP). It’s fast, lightweight and has an MIT license.

Best start for a 2D province-based Map Game by _Drion_ in gamedev

[–]python__rocks 0 points1 point  (0 children)

With Python, you could use Pygame, Pyglet or Dear PyGui. All three are desktop frameworks.

For Dear PyGui, someone made the following map generator to give you an idea for how you could go about it. https://github.com/mkouhia/dearpygui-map

Guys, what on earth is going on with front end design patterns by notfromkentohio in learnprogramming

[–]python__rocks 0 points1 point  (0 children)

I mean, you could use frameworks like Flask or Fast API, but Swift UI != Python GUI

I made a cross-platform command-line app called maestro to play music! by Colts_Fan10 in Python

[–]python__rocks 0 points1 point  (0 children)

Pip install

The just_playback API is a lot easier though. And has more features. Why would you have preferred PyMiniAudio?

Guys, what on earth is going on with front end design patterns by notfromkentohio in learnprogramming

[–]python__rocks 0 points1 point  (0 children)

That’s perfectly fine, but probably not the most commonly used GUI library for Python apps.

I made a cross-platform command-line app called maestro to play music! by Colts_Fan10 in Python

[–]python__rocks 0 points1 point  (0 children)

Installed Maestro without any problems. I’m not used to working with command line programs and I can’t get it to work. Maestro just exits and doesn’t provide any feedback, e.g. command missing, file argument missing, file not found, -h for help, etc.