is it possible to have a popup menu as one of the fields in a Gtk2::SimpleList?

if so, how do i do it - at a guess, Gtk2::SimpleList->add_column_type would be used, but the documentation is fairly minimal and i can't figure it out.

back-story: i'm writing a very quick and dirty POS system using perl, gtk2, and postgres to replace a completely bletcherous ancient DOS + COBOL program that came on the windows box when we bought our bookshop. i want to get rid of the windows box and replace it with a linux box. more importantly, i want access to our sales data so i can write whatever queries we need.

all the POS system needs to do is allow the user to enter sales items, calculate totals, print receipts, and store the transaction in postgres. the reports will be completely separate, and probably web-based.

so, i've figured out how to do menus, and SimpleLists to display the items. now i want the user to be able to override the RRP with either a fixed-price or a percentage discount for each item. that requires a "discount field" and a discount type field (popup menu: "None", "Fixed", "Percentage").


In reply to popup menu in Gtk2::SimpleList by cas2006

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.