I'm currently using the wxPython library to construct a GUI. One interesting aspect of the library I've noticed is that it uses CamelCase notation to write method names, as opposed to the snake_case notation that PEP 8 recommends*. This isn't to much of a surprise however since wxPython is basically a wrapper around the wx library, meant for C++. This poses an interesting decision though.
Naturally, I'm modeling my GUI structure using OOP, sub-classing the most appropriate GUI widget. Often, I have to write extension and convince methods to complete the sub-classing. At first, I thought I'd write the methods using snake_case notation; Just because wxPython used CamelCase didn't mean I had to as well. In hindsight though, this is causing the code to look inconsistent and sloppy and I'm fairly sure the correct course of action would be to use CamelCase notation to maintain consistency. However, note that I would like to continue to use snake_case for variables, since that didn't seem to affect consistency much. But I'd like to get a second opinion before making final decision on this.
Should code be written to stay consistent with the unidiomatic API style of a library?
* I understand that PEP 8 is only a style guide. It doesn't have to followed absolutely. However, since most Python code I've encountered is written based on PEP 8, I'd like to stay consistent.