]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_toplvl.i
log wxChoice events in the same format as wxComboBox ones to make it simpler to compa...
[wxWidgets.git] / wxPython / src / _toplvl.i
index ceeaf5b11104df8963bbf7f9e8c1ccc69de9da0e..f12c268f7bd29525ccb73700acac9ceccf8f1ab1 100644 (file)
@@ -134,7 +134,16 @@ public:
     virtual bool IsActive();
 
 #ifdef __WXMAC__
-    void MacSetMetalAppearance( bool on );
+    %extend {
+        void MacSetMetalAppearance( bool on ) {
+            int style = self->GetExtraStyle();
+            if ( on )
+                style |= wxFRAME_EX_METAL;
+            else
+                style &= ~wxFRAME_EX_METAL;
+            self->SetExtraStyle(style);
+        }
+    }
     bool MacGetMetalAppearance() const;
 #else
     %extend