I'm able to reproduce this on 32-bit Ibex with the following code lifted
from the tutorial at http://www.wanware.com/tsgdocs/snack.html:

import sys
import getopt

from snack import *

class Usage(Exception):
    def __init__(self, msg):
        self.msg = msg


def main(argv=None):
    if argv is None:
        argv = sys.argv
    try:
        try:
            opts, args = getopt.getopt(argv[1:], "h", ["help"])
        except getopt.error, msg:
            raise Usage(msg)
    except Usage, err:
        print >>sys.stderr, err.msg
        print >>sys.stderr, "for help use --help"
        return 2

    screen = SnackScreen()

    upperleft = Widget()
    upperright = Widget()
    lowerleft = Widget()
    lowerright = Widget()
    
    g = Grid(2,2)
    g.setField(upperleft, 0, 0, (0,0,1,1))
    g.setField(upperright, 1, 0)
    g.setField(lowerleft, 0, 1)
    g.setField(lowerright, 1, 1, growx = 1, growy = 1)
    
    screen.gridWrappedWindow(g, "This is a snack test")
    
    f = Form()
    f.add(g)
    
    result = f.run()

    screen.popWindow()
    screen.finish()

if __name__ == "__main__":
    sys.exit(main())

-- 
python-newt scripts crash 
https://bugs.launchpad.net/bugs/110880
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to