class_docstr: IdleConfigParser specialised for user configuration handling.
class_docstr_tok: ["IdleConfigParser","specialised","for","user","configuration","handling","."]
docstr: Update user configuration file.
  
  Remove empty sections. If resulting config isn't empty, write the file
  to disk. If config is empty, remove the file from disk if it exists.
code: def Save(self):
      """Update user configuration file.
  
      Remove empty sections. If resulting config isn't empty, write the file
      to disk. If config is empty, remove the file from disk if it exists.
  
      """
      if not self.IsEmpty():
          fname = self.file
          try:
              cfgFile = open(fname, "w")
          except IOError:
              os.unlink(fname)
              cfgFile = open(fname, "w")
          with cfgFile:
              self.write(cfgFile)
      else:
          self.RemoveFile()
  
imports: from __future__ import print_function
  import os
  import sys
  from ConfigParser import ConfigParser
  from Tkinter import TkVersion
  from tkFont import Font, nametofont
label_desc: Use image node_id 7 for calling the IdleUserConfParser obj's underlying member method code with example usage: obj.Save() without return types