From: Williams T. <pha...@gm...> - 2011-04-02 21:12:43
|
Jerry, I'm not familiar with the Bwidget combobox as I personally use the Bryan Oakley combobox. Do you call the tablelist::addBWidgetComboBox ?name? command prior to creating the tablelist? That would be important to do if you currently do not. As for using #!/usr/bin/wish, I also cannot start the script from the command-line; however, if I do a 'which wish', I get a different wish -- /opt/local/bin/wish. If I specify #!/opt/local/bin/wish at the top of the file, I can launch directly from the command-line. If you are trying to make the script cross-platform compatible, you may want to avoid this line altogether and create proper shell script to handle the initial start-up -- just a thought. I haven't run across the scrollbar problem before. Do you have some example code that I can view/play around with? Thanks, Trevor Williams Jerry LeVan wrote: > Hi, > > My first Tablelist application ofxConvert.tcl is finally ( basically ) functional. > > It will parse OFX data from my bank and credit card into a Tablelist where I can > 'clean up' the data and save the result in a CSV format that I can import into > my postgresql home db. > > One of the columns in the table is critical in that the content is used as a foreign > key in the data base and consequently no 'spelling' errors can be permitted. > > I decided to use the BWidget Combo box as the editable field for this column. > > Regrettably with apples Tcl/Tk the results are ugly and not very user friendly, on > my Fedora systems the Combo box works a treat :). > > On the mac side when the cell is selected for editing the 'disclosure' item > appears in the field and clicking on it brings up the combo box list. > > Unfortunately the combo box (frame ) does not receive focus ie the scroll bar > is grayed out, the window (of the combo box) does not allow resizing and the dots > in the frame are gray... > > Fortunately the *interior* of the combo box can be scrolled with the mouse and clicked on > to select an item. > > In order to dismiss the combo box I have to click in the cell being edited and do > a control-return to end the editing. > > Does anyone know of a fix? Is this an apple tcl problem or is it something a bit > deeper? ( ie does this problem go away with with active states tcl?) > > I have attached a scrollbar to the table and a couple of times the down > arrow of the scrollbar has appeared to get stuck in the 'on' state and > cause the app to eventually crash. > > I (re)found out that a Tk script cannot be executed directly if the initial > line is #!/usr/bin/wish. > > I can start a Tk program if I use #!/usr/bin/tclsh and do a package require Tk. > Unfortunately scripts started this way appear to be rather unstable. > > Does anyone know why? ( I don't have any of the above problems if I run > the script on a Fedora 14 system.) > > Frustrated... > > Jerry > > > > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Tcl-mac mailing list > tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |