Re: Terry, I think you are right about style sheets

2014-10-08 Thread 'Terry Brown' via leo-editor
On Wed, 26 Oct 2011 20:47:03 -0500 Terry Brown wrote: > the lists say that the cheapest > way to get styling on a widget re-done is > > w.style().unpolish(w) > w.style().polish(w) (a) this doesn't appear to be working reliably (b) just found an alternative, w.setStyleSheet("/* */") works

Re: Terry, I think you are right about style sheets

2011-10-27 Thread Edward K. Ream
On Wed, Oct 26, 2011 at 8:47 PM, Terry Brown wrote: > Sometimes developing is just stupidly frustrating. Just sometimes? You are doing very well :-) My brother calls it "slow but slow". I like that phrase... Edward -- You received this message because you are subscribed to the Google Group

Re: Terry, I think you are right about style sheets

2011-10-26 Thread Terry Brown
On Wed, 26 Oct 2011 15:23:32 -0500 "Edward K. Ream" wrote: > > I've been working on getting CSS like class behavior, which I think > > would avoid this problem. Sometimes developing is just stupidly frustrating. I spent at least 45 minutes trying to work out why QTextEditor[style_class~='fo

Re: Terry, I think you are right about style sheets

2011-10-26 Thread Edward K. Ream
On Oct 26, 3:23 pm, "Edward K. Ream" wrote: > Glad I asked.  Your approach looks much better than what I was > thinking of.  I'll look forward to it. > > In the meantime, I need a workaround, so I may do an utter hack in > setEditorColors, with the understanding that it will soon be replaced. Do

Re: Terry, I think you are right about style sheets

2011-10-26 Thread Edward K. Ream
On Wed, Oct 26, 2011 at 3:16 PM, Terry Brown wrote: > I've been working on getting CSS like class behavior, which I think > would avoid this problem. Glad I asked. Your approach looks much better than what I was thinking of. I'll look forward to it. In the meantime, I need a workaround, so I

Re: Terry, I think you are right about style sheets

2011-10-26 Thread Terry Brown
On Wed, 26 Oct 2011 13:07:09 -0700 (PDT) "Edward K. Ream" wrote: > There is a bad interaction between setEditorColors and add_border. > Setting the colors (in the body pane's viewport) destroys the border > in the same place. > > Would you like to do the work of saving/restoring/patching stylesh

Terry, I think you are right about style sheets

2011-10-26 Thread Edward K. Ream
There is a bad interaction between setEditorColors and add_border. Setting the colors (in the body pane's viewport) destroys the border in the same place. Would you like to do the work of saving/restoring/patching stylesheet attributes, or shall I? Edward -- You received this message because yo