[Python-de] Ändern des Style eines wxFrame Objektes

Wagner, Frank F.Wagner at wika.de
Mi Jan 18 12:56:12 CET 2012


Hallo,

ich nutze Python 2.5 und wxPython um eine kleine Applikation zu schreiben. Das Hauptfenster soll allerdings vom Anwender nicht in seiner Größe verändert werden können aus diesem Grunde habe ich die Klasse MainWindow, welche von wx.Frame abgeleitet ist wie folgt initialisiert:

1. Versuch:
class MainWindow(wx.Frame):
    '''
    '''

    def __init__(self, parent=None, id=-1, title = "MainWindow",
                 size = (900, 450), style=wx.CLOSE_BOX | wx.SYSTEM_MENU | wx.CAPTION ):

2. Versuch:

class MainWindow(wx.Frame):
    '''
    '''

    def __init__(self, parent=None, id=-1, title = "MainWindow",
                 size = (900, 450), style = wx.DEFAULT_FRAME_STYLE & ~(wx.RESIZE_BORDER | wx.RESIZE_BOX | wx.MAXIMIZE_BOX ):

Beides wirkt sich in keinster Weise aus, das heißt lass ich den style Parameter weg bekomme ich dasselbe Ergebnis.

Woran kann das liegen, für Hilfe und Ratschläge schon jetzt recht herzlichen Dank
        

Mit freundlichen Grüßen / Kind regards

Frank Wagner

--
Bevor Sie diese E-Mail ausdrucken, überlegen Sie bitte, ob dies wirklich erforderlich ist. Please think before you print.
--
WIKA Alexander Wiegand SE & Co. KG
Alexander-Wiegand-Straße 30 - 63911 Klingenberg - Germany
Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA 1819
Komplementärin: WIKA Verwaltungs SE & Co. KG - Sitz Klingenberg -
Amtsgericht Aschaffenburg HRA 4685
Komplementärin: WIKA International SE - Sitz Klingenberg -
Amtsgericht Aschaffenburg HRB 10505
Vorstand: Alexander Wiegand
Vorsitzender des Aufsichtsrats: Dr. Max Egli
Telefon: (09372) 132-0
Internet: www.wika.com
-- 
The information contained in this E-Mail and any attached files are strictly confidential and may be subject to legal privilege. If you are not the intended recipient, his representative or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this E-Mail in error, please notify us immediately by E-Mail or telephone and delete this message and all its attachments subsequently. All reasonable precautions have been taken to ensure no viruses are present in this E-Mail.


Mehr Informationen über die Mailingliste python-de