wxPython – wx.DisplaySizeMM() function in wxPythonReadDiscussCoursesPracticeImprove Article ImproveSave Article SaveLike Article LikeIn this article we are going to learn about DisplaySizeMM() function present in wxPython. DisplaySizeMM() function is one of the parent function of wxPython. DisplaySizeMM() function is similar to the DisplaySize() function the only difference is that DisplaySizeMM() function returns dimensions in millimeters. Either of output pointers can be None if the caller is not interested in the corresponding value.Syntax: wx.DisplaySizeMM()Parameters: DisplaySizeMM() function requires no parameters.Returns: ( width, height )Return Type: tupleCode Example:# importing the moduleimport wx # definition of the Example classclass Example(wx.Frame): # instantiating the class def __init__(self, *args, **kwargs): super(Example, self).__init__(*args, **kwargs) self.InitUI() def InitUI(self): # print the size of display in millimeters print(wx.DisplaySizeMM()) # definition of the main functiondef main(): # creating an App object app = wx.App() # creating an Example object ex = Example(None) # showing the Example object ex.Show() # running the App object app.MainLoop() # driver codeif __name__ == '__main__': main()Output: (406, 229) Last Updated : 01 Aug, 2020Like Article Save Article Please Login to comment...Similar ReadswxPython - Replace() function in wxPythonwxPython | EnableTool() function in wxPythonwxPython | GetToolSeparation() function in wxPythonwxPython - GetLabelText() function in wxPythonwxPython - SetBitmap() function in wxPythonwxPython - GetBatteryState() function in wxPythonwxPython | Exit() function in wxPythonwxPython - Disable statictext in wxPythonwxPython - GetField() function function in wx.StatusBarPython - Move() function in wxPythonRelated TutorialsOpenAI Python API - Complete GuidePandas AI: The Generative AI Python LibraryPython for Kids - Fun Tutorial to Learn Python ProgrammingData Analysis TutorialFlask Tutorial LikePreviousCreate RadioButton in frame using wxPythonNext wx.DisplaySize() function in wxPythonArticle Contributed By :RRahulSabharwalRahulSabharwal FollowVote for difficultyEasy Normal Medium Hard ExpertArticle Tags :PythonPractice Tags :pythonReport Issue