<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid">
    <title>gmane.comp.lib.urwid</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1294"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1293"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1292"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1291"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1290"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1289"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1288"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1287"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1286"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1285"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1284"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1283"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1282"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1281"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1280"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1279"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1278"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1277"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1276"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.urwid/1275"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1294">
    <title>Re: How to get position and total number of lines inListBox?</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1294</link>
    <description>&lt;pre&gt;
Scrolling to the end of the ListBox should be easy, just set the focus
to the last item in the list and align it with the bottom.

There does seem to be an issue with your huge text widget though, the
alignment isn't working:

    self.listbox.set_focus(2)
    self.listbox.set_focus_valign('bottom')

But it should have :-)  Maybe you could file a bug on the trac site or github?

Note that you should also be using a SimpleListWalker or similar for
your ListBox content.

For displaying your position the easiest might be to subclass ListBox
and override the render method.  Within render() you can calculate the
rows displayed vs. total rows and update the status bar.  That
calculation could get expensive for really long lists.  You might want
to approximate it based on the position vs. the length of the ListBox
content instead.

Ian
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-04-15T22:08:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1293">
    <title>How to get position and total number of lines in ListBox?</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1293</link>
    <description>&lt;pre&gt;Hello,

I have the following code:

http://bpaste.net/show/91579/

My question is, how to get the current scroll position and total number
of lines in the ui.listbox? I need this to implement scrolling to the
end of listbox (e.g with G key) and to display current position in the
statusbar (like in vim). Or is there some better way?

Thanks in advance
O
&lt;/pre&gt;</description>
    <dc:creator>ok100&lt; at &gt;lavabit.com</dc:creator>
    <dc:date>2013-04-15T19:29:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1292">
    <title>'next selectable' and 'prev selectable'</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1292</link>
    <description>&lt;pre&gt;Hi guys,

I noted that "tab" and "shift tab" were not working in our application. I
looked a bit around and I found that if I map tab to "cursor down" it does
work. My app has a wizard style, there are some controls in a list walker
and then "next" and "previous" buttons in a single line. I would like to
have the focus to jump from the last item in the list to the first button
(all the way down) and then to the second button (one item to the right.)
Instead of using the arrows, a user could use tab to cycle through
selectable widgets. Thats why I thought "next selectable" and "prev
selectable" would do.
Any hints about where to look at ?

Thanks in advance, Rodrigo
_______________________________________________
Urwid mailing list
Urwid&amp;lt; at &amp;gt;lists.excess.org
http://lists.excess.org/mailman/listinfo/urwid
&lt;/pre&gt;</description>
    <dc:creator>Rodrigo Bistolfi</dc:creator>
    <dc:date>2013-04-11T20:57:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1291">
    <title>Re: Using urwid with external event loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1291</link>
    <description>&lt;pre&gt;Hi David,

Can you post some code we can take a look at?

There are three event loops in urwid you can use as an example, if you
behave the same way they do (try copying and running their tests) then
you shouldn't have any problems.

Ian

On Tue, Feb 19, 2013 at 12:51 PM, David &amp;lt;croxis&amp;lt; at &amp;gt;yahoo.com&amp;gt; wrote:
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-20T02:48:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1290">
    <title>Using urwid with external event loop</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1290</link>
    <description>&lt;pre&gt;I'm attempting to use urwid as a command-line server interface with the panda3d game engine. I've attempted to write a main and event loop that is run by the game engine's main loop but have failed to produce any results other than a blank screen. Does anyone have any suggestions on how to tackle this problem? Thank you for the help!.

 
-d-_______________________________________________
Urwid mailing list
Urwid&amp;lt; at &amp;gt;lists.excess.org
http://lists.excess.org/mailman/listinfo/urwid
&lt;/pre&gt;</description>
    <dc:creator>David</dc:creator>
    <dc:date>2013-02-19T17:51:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1289">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1289</link>
    <description>&lt;pre&gt;
returning True from mouse_event should prevent the event from being
sent to unhandled_input.
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-15T17:07:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1288">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1288</link>
    <description>&lt;pre&gt;Thanks Ian, i will test it. But i am not sure what will happen to the
scroll i already made with the Text lines. If i return True from inside any
mouse_event method does unhandled_input in MainLoop catch it?

On Fri, Feb 15, 2013 at 6:56 PM, Ian Ward &amp;lt;ian&amp;lt; at &amp;gt;excess.org&amp;gt; wrote:

_______________________________________________
Urwid mailing list
Urwid&amp;lt; at &amp;gt;lists.excess.org
http://lists.excess.org/mailman/listinfo/urwid
&lt;/pre&gt;</description>
    <dc:creator>Angel Kolev</dc:creator>
    <dc:date>2013-02-15T17:02:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1287">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1287</link>
    <description>&lt;pre&gt;
I see.

Maybe you want to convert all unhandled mouse wheel events into
up/down keystrokes?  That can be done in an unhandled_input callback
on your MainLoop that checks for the mouse event and calls
main_loop.process_input(['up']) or ...(['down'])

Ian
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-15T16:56:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1286">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1286</link>
    <description>&lt;pre&gt;It would be very hard to post the whole code because its separated in many
files/libs.
I created a plugin-based framework and made it to open unlimited pop-ups. I
made a main class Window which is responsible for all widgets in it. Window
has a method add_row() so i am building whatever mixed widget i want.
Example code for the menu from above:
            window = self.new_window(21, 55, text="Choose User and Pass for
each host (%s)" % len(hosts))
            for item in hosts:
                window.add_row([ BaseInput(' User: ',value=item[1][0]),
BaseInput(' Pass: ',value=item[1][1]) ],border=item[0])
            window.add_buttons([ "Done"])
            return window
The result from the code above is in the attached screenshot.
So, i want to use the mouse scroll to scroll the rows instead of the
keyboard, but i cant convert the mouse_event to keypress up/down.

On Fri, Feb 15, 2013 at 6:35 PM, Ian Ward &amp;lt;ian&amp;lt; at &amp;gt;excess.org&amp;gt; wrote:

_______________________________________________
Urwid mailing list
Urwid&amp;lt; at &amp;gt;lists&lt;/pre&gt;</description>
    <dc:creator>Angel Kolev</dc:creator>
    <dc:date>2013-02-15T16:52:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1285">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1285</link>
    <description>&lt;pre&gt;
Would you post a complete runnable example of what you're trying to do?
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-15T16:35:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1284">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1284</link>
    <description>&lt;pre&gt;Well, the problem is that i cant be sure in what container the BaseInput
will be placed. I tried to call the keypress method of ListBox which is on
top of the BaseInput using:
 some_list_box_object.keypress(size,"down")
but it threw an error about sizing.
It made something similar for Text widgets stored in ListBox:



So it scrolls trough a list of Text lines perfectly but i cant do it with
Edit's

On Fri, Feb 15, 2013 at 6:12 PM, Ian Ward &amp;lt;ian&amp;lt; at &amp;gt;excess.org&amp;gt; wrote:

_______________________________________________
Urwid mailing list
Urwid&amp;lt; at &amp;gt;lists.excess.org
http://lists.excess.org/mailman/listinfo/urwid
&lt;/pre&gt;</description>
    <dc:creator>Angel Kolev</dc:creator>
    <dc:date>2013-02-15T16:25:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1283">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1283</link>
    <description>&lt;pre&gt;
I see.  Well, it's the ListBox that does the scrolling, so that's the
thing you should be subclassing.

Your approach should work fine.

Ian
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-15T16:12:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1282">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1282</link>
    <description>&lt;pre&gt;Sorry i meant urwid.Edit. I wrapped it as:


So i want to initiate a keypress trough a mouse_event. Something like:
self.__super.keypress(size,"down")

On Fri, Feb 15, 2013 at 5:52 PM, Ian Ward &amp;lt;ian&amp;lt; at &amp;gt;excess.org&amp;gt; wrote:

_______________________________________________
Urwid mailing list
Urwid&amp;lt; at &amp;gt;lists.excess.org
http://lists.excess.org/mailman/listinfo/urwid
&lt;/pre&gt;</description>
    <dc:creator>Angel Kolev</dc:creator>
    <dc:date>2013-02-15T16:08:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1281">
    <title>Re: mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1281</link>
    <description>&lt;pre&gt;
Hello.  I'm not sure what EditBox is.

Would you post a complete runnable example of what you're trying to do?

Ian
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-15T15:52:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1280">
    <title>mouse_event to keypress</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1280</link>
    <description>&lt;pre&gt;Hello group,

I have class which wraps EditBox. I want to initiate "Up" or "Down" key
presses using the mouse event buttons 4 and 5 so when i scroll the mouse
over the EditBox it should act the same way i am using the keyboard.
I tried this:

    def mouse_event(self,size,event,button,col,row,focus):

The goal i want to achieve is to scroll over ListBox items where every line
is an EditBox. It works perfectly with up/down from the keyboard but cant
using the method above.

Thanks!
_______________________________________________
Urwid mailing list
Urwid&amp;lt; at &amp;gt;lists.excess.org
http://lists.excess.org/mailman/listinfo/urwid
&lt;/pre&gt;</description>
    <dc:creator>Angel Kolev</dc:creator>
    <dc:date>2013-02-15T15:45:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1279">
    <title>Re: Urwid</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1279</link>
    <description>&lt;pre&gt;The web_display module is really a toy, and I must admit I haven't
even tried it in the most recent versions.

What were you planning on using it for?

On Thu, Feb 14, 2013 at 12:03 PM, Pablo M. Mana &amp;lt;pablo.m.mana&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-14T17:39:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1278">
    <title>Re: Fwd: ScrollView, TabView, SplitView and a question</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1278</link>
    <description>&lt;pre&gt;BTW, your test script dies upon keyboard input for me:

----------------------------------------------------------
~/projects/mt_urwid] python test.py                                               master 

Traceback (most recent call last):
  File "test.py", line 299, in &amp;lt;module&amp;gt;
    loop.run()
  File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2.7-linux-i686.egg/urwid/main_loop.py", line 272, in run
    self.screen.run_wrapper(self._run)
  File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2.7-linux-i686.egg/urwid/raw_display.py", line 242, in run_wrapper
    return fn()
  File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2.7-linux-i686.egg/urwid/main_loop.py", line 337, in _run
    self.event_loop.run()
  File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2.7-linux-i686.egg/urwid/main_loop.py", line 708, in run
    self._loop()
  File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2.7-linux-i686.egg/urwid/main_&lt;/pre&gt;</description>
    <dc:creator>Patrick Totzke</dc:creator>
    <dc:date>2013-02-13T14:55:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1277">
    <title>Re: Fwd: ScrollView, TabView, SplitView and a question</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1277</link>
    <description>&lt;pre&gt;Sorry for the slow reply, I need to fix my spam filtering.

Urwid's mouse event handling doesn't go beyond col/row 255, but I'd be
happy to add SGR 1006 handling.  Can you point me to the information
about this protocol and what terminals support it?

On Tue, Feb 5, 2013 at 1:34 PM, R J Cooper
&amp;lt;support01&amp;lt; at &amp;gt;mountainstorm.co.uk&amp;gt; wrote:
&lt;/pre&gt;</description>
    <dc:creator>Ian Ward</dc:creator>
    <dc:date>2013-02-13T14:49:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1276">
    <title>Re: Fwd: ScrollView, TabView, SplitView and a question</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1276</link>
    <description>&lt;pre&gt;Hi Rich,

I've already made a tab widget, have you checked urwid-satext ?

http://repos.goffi.org/urwid-satext/
and http://wiki.goffi.org/wiki/Urwid-satext/en

Btw it seems that last urwid version make some widgets working badly, I'll 
have to check this.

++
Goffi

Le mardi 5 février 2013 18:34:13 R J Cooper a écrit :
&lt;/pre&gt;</description>
    <dc:creator>Goffi</dc:creator>
    <dc:date>2013-02-13T14:16:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1275">
    <title>Fwd: ScrollView, TabView, SplitView and a question</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1275</link>
    <description>&lt;pre&gt;I've been playing around with urwid and I like it; it reminds me of the glory days of TurboVision.  Whilst playing around I've created a simple TabView, SplitView and ScrollView and thought I'd share them in case anyone else is interested.  They need some work; documentation, a bit of tidying up and the scrollview needs to translate events when it passes them through to its content.

Have a look: https://github.com/mountainstorm/mt_urwid

in return I've got a question.  How do I enable SGR 1006 (in both my terminal and urwid).  I know my terminal (iTerm2) supports SGR 1006, and I'm guessing I need to do "export TERM=xterm-1006" - I currently do "export TERM=xterm-1003" ... but I get an error with 1006.  Should it work and if not, is there any other way I can get mouse events for col/rows beyond 225ish?

Thanks

Rich
&lt;/pre&gt;</description>
    <dc:creator>R J Cooper</dc:creator>
    <dc:date>2013-02-05T18:34:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.urwid/1274">
    <title>Re: ListBox and focus problem</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.urwid/1274</link>
    <description>&lt;pre&gt;OK, I managed to get it working

Attached is some sample code if you would like to add it to your respository 
or put somewhere for others to use

Jason



#!/usr/bin/python
#

import tasks_ui

################################################################################
## Sample program
################################################################################
def main():
  information = [('Program:',         'Test program'),
                 ('Message:',         'Hello World'),
                 ('Meaning of life:', '42'),
                 ('South:',           'Not north')
                ]

  dir_list  = 'ls -l'
  whoami    = '/usr/bin/whoami'
  date_time = '/bin/date'
  sleep     = '/bin/sleep 2'
  msgbox    = '/usr/bin/dialog --title \"Hello to my test\" --msgbox \"Press enter to continue\" 0 0'


  my_tasks = []

  ## Create a set of arbitrary tasks, delay two seconds after each command so
  ## the program doesn't execute too quickly

  my_tasks.append({'description' : u"File Listing",
       &lt;/pre&gt;</description>
    <dc:creator>Jason But</dc:creator>
    <dc:date>2013-01-29T04:37:11</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lib.urwid">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lib.urwid</link>
  </textinput>
</rdf:RDF>
