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

Preview window does not show a correct scale in High DPI screen #289

Open
noone-g opened this issue Feb 25, 2025 · 2 comments
Open

Preview window does not show a correct scale in High DPI screen #289

noone-g opened this issue Feb 25, 2025 · 2 comments

Comments

@noone-g
Copy link

noone-g commented Feb 25, 2025

Image

In my 3840x2400 screen (my Dell laptop), the actual window size is not shown in a proper scale.

It's OK in FHD screen (of my PC).
The whole window and its contents are shown properly.

@alejandroautalan
Copy link
Owner

Hello @noone-g, thanks for the issue report.

Can you post the .ui file of the screenshot?
I will try to reproduce the problem and find a solution.

Regards
Alejandro A.

@noone-g
Copy link
Author

noone-g commented Feb 25, 2025

Thanks for your reply.

Here it is:

<?xml version='1.0' encoding='utf-8'?>
<interface version="1.4" author="PygubuDesigner 0.40.2">
  <project>
    <settings>
      <setting id="name">DetailsWindow</setting>
      <setting id="description">Gather details for the email tempalte</setting>
      <setting id="module_name">DetailsWindow</setting>
      <setting id="template">application</setting>
      <setting id="main_widget">mainwindow</setting>
      <setting id="main_classname">DetailsWindow</setting>
      <setting id="main_menu" />
      <setting id="output_dir" />
      <setting id="output_dir2" />
      <setting id="import_tkvariables">False</setting>
      <setting id="use_ttk_styledefinition_file">False</setting>
      <setting id="use_i18n">False</setting>
      <setting id="all_ids_attributes">False</setting>
      <setting id="generate_code_onsave">False</setting>
      <setting id="use_window_centering_code">False</setting>
      <setting id="ttk_style_definition_file" />
    </settings>
    <customwidgets />
  </project>
  <object class="tk.Toplevel" id="mainwindow" named="True">
    <property name="height">200</property>
    <property name="resizable">both</property>
    <property name="width">400</property>
    <child>
      <object class="ttk.Frame" id="main_frame" named="True">
        <property name="height">200</property>
        <property name="width">200</property>
        <layout manager="pack">
          <property name="expand">true</property>
          <property name="fill">both</property>
          <property name="side">top</property>
        </layout>
        <containerlayout manager="grid">
          <property type="col" id="0" name="weight">1</property>
        </containerlayout>
        <child>
          <object class="ttk.Labelframe" id="prewaiver_frame" named="True">
            <property name="height">200</property>
            <property name="text" translatable="yes">Prerequisite Waiver Evaluation Request</property>
            <property name="width">400</property>
            <layout manager="grid">
              <property name="column">0</property>
              <property name="padx">5</property>
              <property name="pady">5</property>
              <property name="row">0</property>
              <property name="sticky">ew</property>
            </layout>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants