On Nov 15, 2009, at 3:26 PM, Jacek Kałucki wrote:
> I have form with two dImage controls on it's edit page,
> that are bound to blob table fields and contains images
> or eventually are empty.
> I filled the table with images from without application
> and everything is working properly, especially images
> are displayed as they should (or controls are empty).
That's good news!
> But when I'm trying to add new record from within application,
> after I choose "New" button in toolbar,
> wxPython error window comes with message:
> no handler found for image type
>
> The good news is that after I click "Ok", I can continue
> and set desired images as control/filed values.
My guess would be that at the point that the new record is created,
the "blank" value that is initially set is conflicting with the image
handling code in the image control. To test this, please add the
following lines to dCursorMixin.py:
1525 def new(self):
1526 """Add a new record to the data set."""
1527 blank = self._getBlankRecord()
print "Blank record:", blank
print "type:", type(blank["us_user_picture"])
1528 self._records = dDataSet(self._records + (blank,))
1529 # Adjust the RowCount and position
1530 self.RowNumber = self.RowCount - 1
Post the output here.
> Bad news is that dImage controls completely looses
> its behaviour, I mean: border, size and scale mode.
> Any suggestions folks, what can I do to avoid that?
That's understandable: once the underlying image classes get hosed,
it's hard to expect them to behave properly.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]