Implemented wxApp in Scala.