Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if i change window size from full screen,clicks have no response #2451

Open
yuewe opened this issue Dec 21, 2024 · 0 comments
Open

if i change window size from full screen,clicks have no response #2451

yuewe opened this issue Dec 21, 2024 · 0 comments
Labels
state: pending not addressed yet type: bug bug

Comments

@yuewe
Copy link

yuewe commented Dec 21, 2024

Version of Dear PyGui

Version: dearpygui 2.0.0
Operating System: Windows 10

My Issue/Question

if i change window size from full screen,clicks have no response

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

if i change window size from full screen,clicks have no response

Screenshots/Video

20241221_142338.mp4

Standalone, minimal, complete and verifiable example

# Here's some code anyone can copy and paste to reproduce your issue
import ctypes
ctypes.windll.shcore.SetProcessDpiAwareness(1)

import dearpygui.dearpygui as dpg
import dearpygui.demo as demo
import os



class MainWindow(object):

    def __init__(self):
        dpg.create_context()
        dpg.create_viewport(title='Custom Title', width=600, height=600)
        self.init_menu_bar()
        demo.show_demo()


    def init_menu_bar(self):
        with dpg.viewport_menu_bar(label="Primary Menu Bar", tag="viewport-bar"):
            with dpg.menu(label="File"):
                dpg.add_menu_item(
                    label="Exit", callback=lambda: dpg.stop_dearpygui()
                )

            with dpg.menu(label="Settings"):
                dpg.add_menu_item(
                    label="IoT Device",
                    callback=None,
                )
                dpg.add_menu_item(
                    label="Logging Level",
                    callback=None,
                )

            with dpg.menu(label="Help"):
                dpg.add_menu_item(
                    label="About WeDX",
                    callback=lambda: dpg.show_item("jjj"),
                    shortcut="Ctrl + H",
                )
                dpg.add_menu_item(
                    label="View License",
                    callback=None,
                    user_data="https://github.com/motojinc25/WeDX/blob/main/LICENSE",
                )
                dpg.add_menu_item(
                    label="Check for updates",
                    callback=lambda: dpg.show_item(
                        "ddd"
                    ),
                )
                dpg.add_spacer()
                dpg.add_separator()
                dpg.add_spacer()
                dpg.add_menu_item(
                    label="Show Metrics",
                    callback=lambda: dpg.show_tool(dpg.mvTool_Metrics),
                )
                dpg.add_menu_item(
                    label="Show Documentation",
                    callback=lambda: dpg.show_tool(dpg.mvTool_Doc),
                )
                dpg.add_menu_item(
                    label="Show Debug",
                    callback=lambda: dpg.show_tool(dpg.mvTool_Debug),
                )
                dpg.add_menu_item(
                    label="Show Style Editor",
                    callback=lambda: dpg.show_tool(dpg.mvTool_Style),
                )
                dpg.add_menu_item(
                    label="Show Font Manager",
                    callback=lambda: dpg.show_tool(dpg.mvTool_Font),
                )
                dpg.add_menu_item(
                    label="Show Item Registry",
                    callback=lambda: dpg.show_tool(dpg.mvTool_ItemRegistry),
                )
                dpg.add_menu_item(
                    label="Show Dear ImGui Demo",
                    callback=lambda: dpg.show_imgui_demo(),
                )
                dpg.add_menu_item(
                    label="Show Dear PyGui Demo",
                    callback=lambda: demo.show_demo(),
                )


if __name__ == "__main__":
    window = MainWindow()

    dpg.setup_dearpygui()
    dpg.show_viewport()
    dpg.start_dearpygui()
    dpg.destroy_context()
@yuewe yuewe added state: pending not addressed yet type: bug bug labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet type: bug bug
Projects
None yet
Development

No branches or pull requests

1 participant