On 2/23/10 5:24 PM, Paul McNett wrote:
> On 2/23/10 4:50 PM, Ed Leafe wrote:
>> On Feb 23, 2010, at 7:37 PM, Mike Mabey wrote:
>>
>>> I'm trying to use a dSlider in my app, but I need to change the style to
>>> wx.SL_LEFT|wx.SL_INVERSE
>>
>>
>>      Those are wxPython styles, and are not exposed in Dabo. This is not for 
>> any reason other than nobody ever seemed to need those styles until now.
>>
>>      It seems like we need two new properties: TickPosition and Reversed. 
>> The former would default to the 'Bottom', and the latter to False. Does that 
>> sound like it would work?
>
> +1 from me, but in the meantime Mike you could try to add code to your slider 
> class:
>
> def initProperties(self):
>     import wx
>     self.super()
>     self.SetWindowStyleFlag(wx.SL_LEFT|wx.SL_INVERSE|wx.SL_AUTOTICKS)
>
> It probably has a 50/50 chance of working. But, even if it does work, as soon 
> as the
> new properties are available you should remove this code and use the 
> properties to
> stay at the Dabo layer instead of diving down into wx.

If it works and you want to use the idea, this is better:

def initProperties(self):
     import wx
     self.super()
     self._addWindowStyleFlag(wx.SL_LEFT)
     self._addWindowStyleFlag(wx.SL_INVERSE)
     self._addWindowStyleFlag(wx.SL_AUTOTICKS)

That way, you don't stomp on other window styles that could have already been 
set by 
Dabo properties.

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