@Tallhamer __feature__ must be imported after PySide6, also you must change setCentralWidget to set_central_widget:
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton
from __feature__ import snake_case, true_property
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.setWindowTitle("My App")
# This is using the functionality from __feature__
button = QPushButton("Click Me")
button.enabled = False
self.set_central_widget(button)
app = QApplication([])
window = MainWindow()
window.show()
sys.exit(app.exec_())