Thanks, Chris. I feel stupid that was so easy. I've even used that before! Guess I'll just have to chalk that one up to being so busy.<br><br>Thanks again!<br>Kerri<br><br><div><span class="gmail_quote">On 5/13/08, <b class="gmail_sendername">Chris M</b> <<a href="mailto:chris.pm@gmail.com">chris.pm@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Although you have appended a new row. The last selected row with focus<br> is still selected. You need to move the selection onto your new row;<br> <br> def addRow(self):<br> r = self.rowCount()<br> self.insertRow(r)<br>
self.setCurrentCell(r,0) # <-- Add this line<br> <br> Should solve your problem.<br> <br> Regards,<br> Chris.<br> <br> 2008/5/13 Kerri Reno <<a href="mailto:kreno@yumaed.org">kreno@yumaed.org</a>>:<br>
<br>> Attached is the code that I'm asking about. If you run it, then 'Add', then<br> > type something into the first cell, then press tab, it returns to the first<br> > cell. Then, tab a couple more times, and 'Add' another row. Then you can<br>
> type something into the first cell, and press tab, and it jumps to where you<br> > left off in the first row.<br> ><br> > Thanks for your help!<br> > Kerri<br> ><br> ><br> ><br> > On 5/12/08, David Boddie <<a href="mailto:david@boddie.org.uk">david@boddie.org.uk</a>> wrote:<br>
> > On Wed, 7 May 2008 09:06:22 -0600, Kerri Reno wrote:<br> > ><br> > > > I have a small table widget where each cell contains a widget. I start<br> > > > with two rows of the table filled with data. If I add a new third row<br>
> to<br> > > > the table, and then start in the first cell to change that line, when I<br> > > > press tab it goes to the second cell in the first row. Has anyone seen<br> > and<br> > > > conquered this issue? If no one has seen it, I can send example code<br>
> that<br> > > > will highlight the problem.<br> > ><br> > ><br> > > Does the problem occur only if you add the third row?<br> > ><br> > > I think you might need to post some sample code that demonstrates the<br>
> > problem. :-)<br> > ><br> > > David<br> > ><br> > > _______________________________________________<br> > > PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
> > <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> > ><br> ><br> ><br> ><br> ><br> > --<br> > Yuma Educational Computer Consortium<br>
> Compass Development Team<br> > Kerri Reno<br> > <a href="mailto:kreno@yumaed.org">kreno@yumaed.org</a> (928) 502-4240<br> > .·:*¨¨*:·. .·:*¨¨*:·. .·:*¨¨*:·.<br> > _______________________________________________<br>
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> > <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
><br> </blockquote></div><br><br clear="all"><br>-- <br>Yuma Educational Computer Consortium<br>Compass Development Team<br>Kerri Reno<br><a href="mailto:kreno@yumaed.org">kreno@yumaed.org</a> (928) 502-4240<br>.·:*¨¨*:·. .·:*¨¨*:·. .·:*¨¨*:·.