Skip to content

How to change window scale? #1990

Discussion options

You must be logged in to vote

I don't know if this answers your question but what you can do is the following

Set the windows size like the following

dpg.create_viewport(title='Custom Title', width=800, height=500) #change the width, height to your liking 

Then on your dpg.window(label="Example Window") set a tag like the following

dpg.window(label="Example Window", tag="fullscreen") #the tag can be any string you want 

Finally copy/paste the following code

dpg.set_primary_window("fullscreen", True) #paste it under dpg.setup_dearpygui()

Complete code

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=300)

with dpg.window(label="Example Window", tag="ful…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Nikasyauskas
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants