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

Infinite loop when resizing window with Text inside ScrolledFrame #51

Open
alejandroautalan opened this issue Jun 3, 2015 · 0 comments
Labels

Comments

@alejandroautalan
Copy link
Owner

Infinite loop when resizing window.

Scenary:

  • Having a ScrolledFrame > ScrollbarHelper > Text
  • All the widgets are set to resize.
  • Scrolltype is set to both
  • Text wrap is set to none

Tip: Does not happen if Text wrap is set to "char" or "word"

Example:

<?xml version='1.0' encoding='utf-8'?>
<interface>
  <object class="tk.Toplevel" id="Toplevel_1">
    <property name="height">200</property>
    <property name="resizable">both</property>
    <property name="width">200</property>
    <child>
      <object class="ttk.Labelframe" id="Labelframe_3">
        <property name="height">200</property>
        <property name="text" translatable="yes">Labelframe_3</property>
        <property name="width">200</property>
        <layout>
          <property name="column">0</property>
          <property name="propagate">True</property>
          <property name="row">0</property>
          <property name="sticky">nsew</property>
          <rows>
            <row id="0">
              <property name="weight">1</property>
            </row>
          </rows>
          <columns>
            <column id="0">
              <property name="weight">1</property>
            </column>
          </columns>
        </layout>
        <child>
          <object class="pygubu.builder.widgets.scrolledframe" id="scrolledframe_1">
            <property name="scrolltype">both</property>
            <layout>
              <property name="column">0</property>
              <property name="propagate">True</property>
              <property name="row">0</property>
              <property name="sticky">nsew</property>
              <rows>
                <row id="0">
                  <property name="weight">1</property>
                </row>
              </rows>
              <columns>
                <column id="0">
                  <property name="weight">1</property>
                </column>
              </columns>
            </layout>
            <child>
              <object class="ttk.Frame" id="Frame_1">
                <property name="height">200</property>
                <property name="width">200</property>
                <layout>
                  <property name="column">0</property>
                  <property name="propagate">True</property>
                  <property name="row">0</property>
                </layout>
                <child>
                  <object class="pygubu.builder.widgets.scrollbarhelper" id="scrollbarhelper_1">
                    <property name="scrolltype">both</property>
                    <layout>
                      <property name="column">0</property>
                      <property name="propagate">True</property>
                      <property name="row">0</property>
                      <property name="sticky">nsew</property>
                    </layout>
                    <child>
                      <object class="tk.Text" id="Text_1">
                        <property name="height">10</property>
                        <property name="text" translatable="yes">WARNING:pygubu.designer:No selecciono item.
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ 
alejandro@sentey:~/tmp/pygubuimages$ /home/alejandro/codigofuente/python/pygubu/bin/pygubu-designer
Running Python sys.version_info(major=3, minor=4, micro=2, releaselevel='final', serial=0) on 'linux'
Pygubu: v. 0.9.7.4</property>
                        <property name="width">50</property>
                        <property name="wrap">none</property>
                        <layout>
                          <property name="column">0</property>
                          <property name="propagate">True</property>
                          <property name="row">0</property>
                          <property name="sticky">nsew</property>
                        </layout>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </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
Projects
None yet
Development

No branches or pull requests

1 participant