Author: bugman
Date: Tue Nov 15 16:10:00 2016
New Revision: 28284

URL: http://svn.gna.org/viewcvs/relax?rev=28284&view=rev
Log:
Keyword to positional argument conversion for the GUI wx.Font() calls.

A number of these were being called with keyword arguments, however the old 
wxPython and Phoenix
documentation say that these are not keyword arguments (this must have been for 
backwards
compatibility with very old wxPython versions).

Modified:
    trunk/gui/spin_viewer/containers.py

Modified: trunk/gui/spin_viewer/containers.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/spin_viewer/containers.py?rev=28284&r1=28283&r2=28284&view=diff
==============================================================================
--- trunk/gui/spin_viewer/containers.py (original)
+++ trunk/gui/spin_viewer/containers.py Tue Nov 15 16:10:00 2016
@@ -139,7 +139,7 @@
         obj = wx.StaticText(self.parent, -1, text)
 
         # Formatting.
-        obj.SetFont(wx.Font(pointSize=12, family=wx.FONTFAMILY_ROMAN, 
style=wx.ITALIC, weight=wx.NORMAL, face='Times'))
+        obj.SetFont(wx.Font(12, wx.FONTFAMILY_ROMAN, wx.ITALIC, wx.NORMAL, 
False, 'Times'))
 
         # Return the object.
         return obj
@@ -164,7 +164,7 @@
         obj = wx.StaticText(self.parent, -1, text)
 
         # Formatting.
-        obj.SetFont(wx.Font(pointSize=16, family=wx.FONTFAMILY_ROMAN, 
style=wx.ITALIC, weight=wx.NORMAL, face='Times'))
+        obj.SetFont(wx.Font(16, wx.FONTFAMILY_ROMAN, wx.ITALIC, wx.NORMAL, 
False, 'Times'))
 
         # Return the object.
         return obj
@@ -183,7 +183,7 @@
         title = wx.StaticText(self.parent, -1, text)
 
         # Formatting.
-        title.SetFont(wx.Font(pointSize=32, family=wx.FONTFAMILY_ROMAN, 
style=wx.ITALIC, weight=wx.NORMAL, face='Times'))
+        title.SetFont(wx.Font(32, wx.FONTFAMILY_ROMAN, wx.ITALIC, wx.NORMAL, 
False, 'Times'))
 
         # Return the object.
         return title


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to