Hi All,<br><br>Following is a sample code, the problem is that when &quot;txtstatus2msg&quot; text string is large the footer resize itself, how can i avoid footer resize.<br>i want to shift the text to next line without resizing the footer.<br>
<br>Anyone have any hint/idea?<br><br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">import urwid<br><br><br>palette = [(&#39;header&#39;, &#39;black&#39;, &#39;light gray&#39;),<br>
           (&#39;body&#39;, &#39;black&#39;, &#39;light blue&#39;),<br>           (&#39;footer&#39;, &#39;black&#39;, &#39;light magenta&#39;)]<br><br>txt_title = urwid.Text(&quot;My Application&quot;, &#39;center&#39;)<br>
<br>txt_title = urwid.Pile([urwid.Divider(top=2),<br>                        txt_title,<br>                        urwid.Divider(top=1)])<br><br>head = urwid.AttrMap(txt_title, &#39;header&#39;)<br><br>txt_one = urwid.Text(&quot;one  &quot;, &#39;center&#39;)<br>
txt_two = urwid.Text(&quot;two &quot;, &#39;center&#39;)<br>txt_close = urwid.Text(&quot;exit &quot;, &#39;center&#39;)<br><br>menuList = urwid.SimpleListWalker([<br>                                       urwid.Divider(&quot; &quot;),     <br>
                                       txt_one,<br>                                       urwid.Divider(&quot; &quot;),<br>                                       txt_two,<br>                                       urwid.Divider(&quot; &quot;),<br>
                                       txt_close,<br>                                       urwid.Divider(&quot; &quot;),<br>                                      ])<br><br>lb = urwid.ListBox(menuList)<br><br>body = urwid.LineBox(lb)<br>
body = urwid.Padding(body, align=&#39;center&#39;, width=40)<br>body = urwid.Filler(body, valign=&#39;middle&#39;, height=9)<br>body = urwid.AttrMap(body, &#39;body&#39;)<br><br>txt_status1       = urwid.Text(&quot;Status: &quot;, &#39;left&#39;)        <br>
txtstatus1msg     = urwid.Text(&quot;&quot;)<br>txt_status2       = urwid.Text(&quot;Message: &quot;)<br>txtstatus2msg     = urwid.Text(&quot;&quot;)<br>        <br>cols = urwid.Columns([(&#39;fixed&#39;, 10, txt_status1),<br>
                      (&#39;fixed&#39;, 20, txtstatus1msg),<br>                      (&#39;fixed&#39;, 9, txt_status2),<br>                                   txtstatus2msg], )<br>        <br>status = urwid.Pile([urwid.Divider(top=1), cols, urwid.Divider(top=2)])<br>
status = urwid.Padding(status, &#39;center&#39;, 70)                   #can&#39;t change this, else controls will not be in center <br><br>footer = urwid.AttrMap(status, &#39;footer&#39;)<br><br>top = urwid.Frame(body, head, footer)<br>
top = urwid.AttrMap(top, &#39;bg&#39;)<br><br>def OnKey(key):<br>              <br>    if key == &#39;f6&#39;:<br>        txtstatus2msg.set_text(&quot;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&quot;)<br>         <br>    if key == &#39;f7&#39;:<br>
        txtstatus2msg.set_text(&quot;aaaaaaaaaaaaaaaaaaaaaaaaaaa&quot;)<br><br>loop = urwid.MainLoop(top, palette, unhandled_input=OnKey)<br>loop.run()<br></blockquote><div><br>Regards, <br></div>