The problem is that it never actually get to the emit function, it makes no
difference if I comment the stuff about the widget..

On Wed, Sep 27, 2017 at 8:38 PM, Justin Israel <justinisr...@gmail.com>
wrote:

>
>
> On Thu, Sep 28, 2017, 12:45 AM Sebastian Schoellhammer <
> sschoellhammer.li...@gmail.com> wrote:
>
>> Hi!
>>
>> Has anybody tried to create a custom logger handler?
>>
>> I wanted to make on that outputs to a qt widget but I can't even get my
>> emit function to be called :/
>>
>> Here's my code:
>> https://pastebin.com/TV7Cf0fw
>>
>> If anybody sees something obvious, please let me know!
>>
>
> Your example never sets the widget for the log handler. Additionally you
> never default self.loggingWidget=None in your __init__() so I would
> expect your handler to crash when it goes to emit and hits an undefined
> field.
>
>
>> Thanks!!
>>
>> seb
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/python_inside_maya/CAMLepcZUUWmA%2B_wMb5TEgvPCJis%2BkCn%
>> 2BhfWTP2cZ78ou9CVb_w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAMLepcZUUWmA%2B_wMb5TEgvPCJis%2BkCn%2BhfWTP2cZ78ou9CVb_w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/CAPGFgA2CY787GOLAH-ewu1LbJm%
> 3DcQwDjDmcsYxEP4rtBeWYdYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2CY787GOLAH-ewu1LbJm%3DcQwDjDmcsYxEP4rtBeWYdYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sebastian Schoellhammer

w <http://www.sebscorner.org>ww.mokumedia.de <http://www.mokumedia.de>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAMLepcar3eex%2B8oKtXtHxg9jhp%2BqTSXh00cyL7KdnJ%3Ds0xk4LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to