kandi background
Explore Kits

DearPyGui | Dear PyGui : A fast and powerful Graphical User Interface | Frontend Framework library

 by   hoffstadt C++ Version: v1.5.0 License: MIT

 by   hoffstadt C++ Version: v1.5.0 License: MIT

Download this library from

kandi X-RAY | DearPyGui Summary

DearPyGui is a C++ library typically used in User Interface, Frontend Framework applications. DearPyGui has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.
Dear PyGui is a simple to use (but powerful) Python GUI framework. Dear PyGui is NOT a wrapping of Dear ImGui in the normal sense. It is a library built with Dear ImGui.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • DearPyGui has a medium active ecosystem.
  • It has 7591 star(s) with 390 fork(s). There are 121 watchers for this library.
  • There were 6 major release(s) in the last 12 months.
  • There are 153 open issues and 780 have been closed. On average issues are closed in 24 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of DearPyGui is v1.5.0
DearPyGui Support
Best in #Frontend Framework
Average in #Frontend Framework
DearPyGui Support
Best in #Frontend Framework
Average in #Frontend Framework

quality kandi Quality

  • DearPyGui has 0 bugs and 0 code smells.
DearPyGui Quality
Best in #Frontend Framework
Average in #Frontend Framework
DearPyGui Quality
Best in #Frontend Framework
Average in #Frontend Framework

securitySecurity

  • DearPyGui has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • DearPyGui code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
DearPyGui Security
Best in #Frontend Framework
Average in #Frontend Framework
DearPyGui Security
Best in #Frontend Framework
Average in #Frontend Framework

license License

  • DearPyGui is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
DearPyGui License
Best in #Frontend Framework
Average in #Frontend Framework
DearPyGui License
Best in #Frontend Framework
Average in #Frontend Framework

buildReuse

  • DearPyGui releases are available to install and integrate.
  • Installation instructions, examples and code snippets are available.
DearPyGui Reuse
Best in #Frontend Framework
Average in #Frontend Framework
DearPyGui Reuse
Best in #Frontend Framework
Average in #Frontend Framework
Top functions reviewed by kandi - BETA

kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample Here

Get all kandi verified functions for this library.

Get all kandi verified functions for this library.

DearPyGui Key Features

Dear PyGui includes a plotting API built with ImPlot. Dear PyGui includes a node editor built with imnodes. Dear PyGui includes a drawing API to create custom drawings, plot, and even 2D games.

DearPyGui Examples and Code Snippets

See all related Code Snippets

Installation

copy iconCopydownload iconDownload
pip install dearpygui
or
pip3 install dearpygui

Resources

copy iconCopydownload iconDownload
import dearpygui.dearpygui as dpg
from dearpygui.demo import show_demo

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

show_demo()

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

Usage

copy iconCopydownload iconDownload
import dearpygui.dearpygui as dpg

def save_callback():
    print("Save Clicked")

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

with dpg.window(label="Example Window"):
    dpg.add_text("Hello world")
    dpg.add_button(label="Save", callback=save_callback)
    dpg.add_input_text(label="string")
    dpg.add_slider_float(label="float")

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

No module named 'dearpygui.core'

copy iconCopydownload iconDownload
from dearpygui.core import *

def save_callback(sender, data):
    print("Save Clicked")

add_text("Hello, world")
add_button("Save", callback=save_callback)
add_input_text("string", default_value="Quick brown fox")
add_slider_float("float", default_value=0.273, max_value=1)

start_dearpygui()
import dearpygui.dearpygui as dpg

def save_callback():
    print("Save Clicked")

with dpg.window(label="Example Window"):
    dpg.add_text("Hello, world")
    dpg.add_button(label="Save", callback=save_callback)
    dpg.add_input_text(label="string", default_value="Quick brown fox")
    dpg.add_slider_float(label="float", default_value=0.273, max_value=1)
dpg.start_dearpygui()
from dearpygui.core import *

def save_callback(sender, data):
    print("Save Clicked")

add_text("Hello, world")
add_button("Save", callback=save_callback)
add_input_text("string", default_value="Quick brown fox")
add_slider_float("float", default_value=0.273, max_value=1)

start_dearpygui()
import dearpygui.dearpygui as dpg

def save_callback():
    print("Save Clicked")

with dpg.window(label="Example Window"):
    dpg.add_text("Hello, world")
    dpg.add_button(label="Save", callback=save_callback)
    dpg.add_input_text(label="string", default_value="Quick brown fox")
    dpg.add_slider_float(label="float", default_value=0.273, max_value=1)
dpg.start_dearpygui()

AttributeError: __enter__ dearpygui tabs

copy iconCopydownload iconDownload
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
    with dpg.tab_bar(label='tabbar'):  # without `add_`
        with dpg.tab(label='tab1'):    # without `add_`
            dpg.add_checkbox(label='Hello')
        with dpg.tab(label='tab2'):    # without `add_`
            dpg.add_checkbox(label='World')

dpg.start_dearpygui()    
import dearpygui.dearpygui as dpg

window = dpg.add_window(label="window")

tabbar = dpg.add_tab_bar(label='tabbar', parent=window)

tab1 = dpg.add_tab(label='tab1', parent=tabbar)
dpg.add_checkbox(label='Hello', parent=tab1)

tab2 = dpg.add_tab(label='tab2', parent=tabbar)
dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
   
    tabbar = dpg.add_tab_bar(label='tabbar')  # without `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window") as window:       # without `add_`
   
    #tabbar = dpg.add_tab_bar(label='tabbar')                 # without `parent`
    tabbar = dpg.add_tab_bar(label='tabbar', parent=window)   # or with `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
    with dpg.tab_bar(label='tabbar'):  # without `add_`
        with dpg.tab(label='tab1'):    # without `add_`
            dpg.add_checkbox(label='Hello')
        with dpg.tab(label='tab2'):    # without `add_`
            dpg.add_checkbox(label='World')

dpg.start_dearpygui()    
import dearpygui.dearpygui as dpg

window = dpg.add_window(label="window")

tabbar = dpg.add_tab_bar(label='tabbar', parent=window)

tab1 = dpg.add_tab(label='tab1', parent=tabbar)
dpg.add_checkbox(label='Hello', parent=tab1)

tab2 = dpg.add_tab(label='tab2', parent=tabbar)
dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
   
    tabbar = dpg.add_tab_bar(label='tabbar')  # without `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window") as window:       # without `add_`
   
    #tabbar = dpg.add_tab_bar(label='tabbar')                 # without `parent`
    tabbar = dpg.add_tab_bar(label='tabbar', parent=window)   # or with `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
    with dpg.tab_bar(label='tabbar'):  # without `add_`
        with dpg.tab(label='tab1'):    # without `add_`
            dpg.add_checkbox(label='Hello')
        with dpg.tab(label='tab2'):    # without `add_`
            dpg.add_checkbox(label='World')

dpg.start_dearpygui()    
import dearpygui.dearpygui as dpg

window = dpg.add_window(label="window")

tabbar = dpg.add_tab_bar(label='tabbar', parent=window)

tab1 = dpg.add_tab(label='tab1', parent=tabbar)
dpg.add_checkbox(label='Hello', parent=tab1)

tab2 = dpg.add_tab(label='tab2', parent=tabbar)
dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
   
    tabbar = dpg.add_tab_bar(label='tabbar')  # without `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window") as window:       # without `add_`
   
    #tabbar = dpg.add_tab_bar(label='tabbar')                 # without `parent`
    tabbar = dpg.add_tab_bar(label='tabbar', parent=window)   # or with `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
    with dpg.tab_bar(label='tabbar'):  # without `add_`
        with dpg.tab(label='tab1'):    # without `add_`
            dpg.add_checkbox(label='Hello')
        with dpg.tab(label='tab2'):    # without `add_`
            dpg.add_checkbox(label='World')

dpg.start_dearpygui()    
import dearpygui.dearpygui as dpg

window = dpg.add_window(label="window")

tabbar = dpg.add_tab_bar(label='tabbar', parent=window)

tab1 = dpg.add_tab(label='tab1', parent=tabbar)
dpg.add_checkbox(label='Hello', parent=tab1)

tab2 = dpg.add_tab(label='tab2', parent=tabbar)
dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window"):       # without `add_`
   
    tabbar = dpg.add_tab_bar(label='tabbar')  # without `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()
import dearpygui.dearpygui as dpg

with dpg.window(label="window") as window:       # without `add_`
   
    #tabbar = dpg.add_tab_bar(label='tabbar')                 # without `parent`
    tabbar = dpg.add_tab_bar(label='tabbar', parent=window)   # or with `parent`
    
    tab1 = dpg.add_tab(label='tab1', parent=tabbar)
    dpg.add_checkbox(label='Hello', parent=tab1)
    
    tab2 = dpg.add_tab(label='tab2', parent=tabbar)
    dpg.add_checkbox(label='World', parent=tab2)

dpg.start_dearpygui()

How to draw a PIL image to a DearPyGui canvas?

copy iconCopydownload iconDownload
import dearpygui.core as dpg
import dearpygui.simple as sdpg
from PIL import ImageGrab


with sdpg.window("Main Window"):
    dpg.set_main_window_size(800, 800)
    dpg.set_main_window_title("Pixel selector")

    dpg.add_drawing('drawing', width=400, height=350)

    img = ImageGrab.grab(bbox=[0, 0, 100, 100])

    dpg_image = []
    for i in range(0, img.height):
        for j in range(0, img.width):
            pixel = img.getpixel((j, i))
            dpg_image.append(pixel[0])
            dpg_image.append(pixel[1])
            dpg_image.append(pixel[2])
            dpg_image.append(255)

    # something like this would be great
    dpg.add_texture("texture id", dpg_image, img.width, img.height)
    dpg.draw_image('drawing', "texture id", [0, 0], [100, 100])

dpg.start_dearpygui()

See all related Code Snippets

Community Discussions

Trending Discussions on DearPyGui
  • No module named 'dearpygui.core'
  • AttributeError: __enter__ dearpygui tabs
  • How to draw a PIL image to a DearPyGui canvas?
Trending Discussions on DearPyGui

QUESTION

No module named 'dearpygui.core'

Asked 2021-Sep-08 at 11:18

I am trying to run this code using Notepad++ version 8.14

from dearpygui.core import *
from dearpygui.simple import *

#window object setting
set_main_window_size(540, 720)
set_global_font_scale(1.25)
set_theme("Gold")

with window("SMS SMS Spam Filter", width = 520, height = 667):
    print("GUI is runngin")
    
start_dearpygui()

but the output is error which is

    from dearpygui.core import *
ModuleNotFoundError: No module named 'dearpygui.core'

I have tried pip install dearpygui on command prompt, but it showed the same. Anyone can solve this?

ANSWER

Answered 2021-Sep-08 at 11:18

DearPyGui is under heavy devlopment and the code you are trying to run is the "old" way of doing things (prior to version 0.6). Here is the comparaison between an old and an up-to-date version of the library :

Old version

from dearpygui.core import *

def save_callback(sender, data):
    print("Save Clicked")

add_text("Hello, world")
add_button("Save", callback=save_callback)
add_input_text("string", default_value="Quick brown fox")
add_slider_float("float", default_value=0.273, max_value=1)

start_dearpygui()

New version

import dearpygui.dearpygui as dpg

def save_callback():
    print("Save Clicked")

with dpg.window(label="Example Window"):
    dpg.add_text("Hello, world")
    dpg.add_button(label="Save", callback=save_callback)
    dpg.add_input_text(label="string", default_value="Quick brown fox")
    dpg.add_slider_float(label="float", default_value=0.273, max_value=1)
dpg.start_dearpygui()

Source https://stackoverflow.com/questions/69089969

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install DearPyGui

Ensure you have at least Python 3.6 64bit.

Support

If you are having issues or want to help, here are some places you can go:.

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Reuse Pre-built Kits with DearPyGui
Consider Popular Frontend Framework Libraries
Try Top Libraries by hoffstadt
Compare Frontend Framework Libraries with Highest Support
Compare Frontend Framework Libraries with Highest Quality
Compare Frontend Framework Libraries with Highest Security
Compare Frontend Framework Libraries with Permissive License
Compare Frontend Framework Libraries with Highest Reuse
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases
Explore Kits

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.