← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 195: Reverting to the old generating name behavior.

 

------------------------------------------------------------
revno: 195
committer: Eduardo C. P. Ribeiro <eduardo.cesar@xxxxxxx>
branch nick: cdd
timestamp: Wed 2012-07-25 16:48:56 -0300
message:
  Reverting to the old generating name behavior.
modified:
  src/cdg_main.py


--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk

Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'src/cdg_main.py'
--- src/cdg_main.py	2012-07-25 02:29:40 +0000
+++ src/cdg_main.py	2012-07-25 19:48:56 +0000
@@ -451,13 +451,11 @@
 
 
 def get_path(self):
-    wildcard = "CDD files (*.cdd)|*.cdd|"     \
-        "All files (*.*)|*.*"
-    dlg = wx.FileDialog(self, _("Choose the name of the generated file:"),
-                        defaultDir=os.getcwd(),
-                        defaultFile='my_cool_cdd.cdd',
-                        wildcard=wildcard,
-                        style=wx.SAVE
+    #wildcard = "CDD files (*.cdd)|*.cdd|"     \
+    #    "All files (*.*)|*.*"
+    dlg = wx.DirDialog(self, _("Choose a directory to put the generated files:"),
+                        os.getcwd(),
+                        style=wx.DD_DEFAULT_STYLE
                         )