If I click in the control, the selection disappears. But if I try to save or
navigate to a different record, the value still gets reverted to the original
value. There is no error message, no exception.

By the way, if I double click on the control when the value of the field is
None (to open the calendar), I get the following exception:

Traceback (most recent call last):
  File "/home/peter/dabo/dabo/ui/uiwx/dPemMixin.py", line 623, in 
__onWxMouseLeftDoubleClick
    self.raiseEvent(dEvents.MouseLeftDoubleClick, evt)
  File "/home/peter/dabo/dabo/ui/uiwx/dPemMixin.py", line 947, in raiseEvent
    super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
  File "/home/peter/dabo/dabo/lib/eventMixin.py", line 93, in raiseEvent
    bindingFunction(event)
  File "/home/peter/dabo/dabo/ui/uiwx/dDateTextBox.py", line 123, in 
__onDblClick
    self.showCalendar()
  File "/home/peter/dabo/dabo/ui/uiwx/dDateTextBox.py", line 131, in 
showCalendar
    cp.cal.Date = self.Value
  File "/home/peter/dabo/dabo/ui/uiwx/dCalendar.py", line 185, in _setDate
    self.PySetDate(val)
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/calendar.py", 
line 507, in PySetDate
    self.SetDate(_pydate2wxdate(date))
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/calendar.py", 
line 577, in _pydate2wxdate
    assert isinstance(date, (datetime.datetime, datetime.date))
AssertionError


Cheers 

Peter

-------- Original-Nachricht --------
> Datum: Mon, 23 Feb 2009 07:49:36 -0600
> Von: Ed Leafe <[email protected]>
> An: Dabo Users list <[email protected]>
> Betreff: Re: [dabo-users] dMaskedTextBox issue

> On Feb 23, 2009, at 4:10 AM, Peter Seckler wrote:
> 
> > There is no error message, no traceback. I see a kind of weird  
> > behaviour after I choose a date and the calendar closes: the text in  
> > the dDateTextBox gets partially selected. It's like I would click  
> > and drag the mouse, just by moving the mouse over the dDateTextBox.  
> > The selection changes accordingly to where the mouse is at any  
> > moment. Hope that helps.
> 
>       Sounds like your click is 'sticking'; i.e., the UI thinks that your  
> mouse button is still pressed down. What happens if, after selecting a  
> date from the calendar, you click inside the control? Does the  
> selection still change when you move the mouse over it after that?
> 
> 
> -- Ed Leafe
> 
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
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]

Reply via email to