in reply to Have there been sightings of TK::TixGrid in the wild?

Look at ztkdb-sql. My labels and entries are somewhat scattered in that, but it could easily be changed to use a nice stack of frames and LabEntry's. I purposely left it that way, so I would have something to offer, in the PAY version....bwaha haa.

You are better off sticking with a nesting of more standard widgets, in my experience.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re: Have there been sightings of TK::TixGrid in the wild?

Replies are listed 'Best First'.
Re^2: Have there been sightings of TK::TixGrid in the wild?
by generator (Pilgrim) on Apr 10, 2009 at 21:15 UTC
    zentara

    Thanks for the feedback. Your program looks interesting. My current approach is to use a text entry widget to ask the user to provide info on the records to be edited (UserCode?, Between what dates?, etc). Based on user provided parameters, I'll build and submit the SQL query and return the list of pontential candidate data records. From that list I'll have the user click on the one they wish to edit which will move it into another "editing" grid. When entries are completed there, the user will click an "save changes" button. At that point the program will build and submit the SQL update via the ODBC connection and prompt for another set of general parameters.

    Given that I'm addressing an MS SQL database using Win32::ODBC in a Windows XP user environment, I'm not sure yours is the tool for the current project.

    Rest assured I'll be downloading it and poaching any good ideas I discover within your code.

    Thanks again for the feedback and for your willingness to share your skills.

    Oh, and I appreciated your comment...

    "You are better off sticking with a nesting of more standard widgets, in my experience."
    ...it reinforced a growing suspicion I had.

    Respectfully

    Generator

      When entries are completed there, the user will click an "save changes" button.

      If you dig deep into my program, you can automatically submit the SQL update, when you change tabs, if an md5sum change was detected in the fields. No need to have a Save Changes button.(This avoids lost changes if you accidently switch tabs :-) ) Do your automatic magic in the "raisecmd" and "lowercmd" callbacks of the Notebook widgets. But you are probably starting to figure this out. :-)

      FWIW, Tk the Tk Text widget dosn't have a "is_edited" flag, so you need to rely on md5sums, or something similar. However, Gtk2 does has an "has_been_edited" signal.


      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku