mlhim-specs-dev team mailing list archive
-
mlhim-specs-dev team
-
Mailing list archive
-
Message #00618
[Branch ~cdd-dev/cdd/trunk] Rev 193: Allow user to specify an alternate name of CDD file.
------------------------------------------------------------
revno: 193
committer: Eduardo C. P. Ribeiro <eduardo.cesar@xxxxxxx>
branch nick: cdd
timestamp: Tue 2012-07-24 11:56:34 -0300
message:
Allow user to specify an alternate name of CDD file.
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-23 11:39:04 +0000
+++ src/cdg_main.py 2012-07-24 14:56:34 +0000
@@ -402,15 +402,16 @@
return l2
+
def get_path(self):
- path = os.getcwd()
-
- dlg = wx.DirDialog(self, _("Choose a directory to put the generated files:"),
- path,
- style=wx.DD_DEFAULT_STYLE
- #| wx.DD_DIR_MUST_EXIST
- #| wx.DD_CHANGE_DIR
- )
+ 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
+ )
if dlg.ShowModal() == wx.ID_OK: