hey nub, I'm redesigning UMC's module interface to support the new header functions.
I need a Tkinter popup dialog with selection buttons for shared filetypes, kinda like something I had before:
think you could do better than me and actually make something that works??
(have the buttons return a feedback and close the dialog)
I can't do crap with Tkinter... heh
EDIT:
in the mean-time I'll just do a console selection... heh
EDIT2:
hey nub, forget my request!
I'mma reverse-engineer askopenfilename and asksaveasfilename and make my own classes by revising the current src
askopenfilename will be changed to Open() and will return the filter name along with the file(s)
EDIT3:
so much for that... T3T
command = "tk_getOpenFile"
s = w.tk.call(self.command, *w._options(self.options))
tracing that back, 'tk' is part of a root module _Tkinter, which is imported in Tkinter.py >3<
meaning what I need access to is compiled into the interpreter's backend >3<
so I can't make Tkinter's file dialog return the filter... ugh
I'll see if I can find an alternate tomorrow...
(something small that can do what askopenfilename can do AND return the filter)
this sucks and blows >3<
EDIT4:
for anyone who's interested, I've posted my revers-engineered code here:
https://www.daniweb.com/software-develop...ter-return
it should work just a tad better than the original functions as you're not forwarding through 3rd-party interfaces, and have a little more control.
EDIT5:
you know what... WTF am I doing...
I've been wanting to make UMC's import button work for so long now,
and having to redo the way scripts are handled give me the perfect opportunity to do so.
so UMC's UI will handle opening and saving files.
I need a Tkinter popup dialog with selection buttons for shared filetypes, kinda like something I had before:
think you could do better than me and actually make something that works??
(have the buttons return a feedback and close the dialog)
I can't do crap with Tkinter... heh
EDIT:
in the mean-time I'll just do a console selection... heh
EDIT2:
hey nub, forget my request!
I'mma reverse-engineer askopenfilename and asksaveasfilename and make my own classes by revising the current src
askopenfilename will be changed to Open() and will return the filter name along with the file(s)
EDIT3:
so much for that... T3T
command = "tk_getOpenFile"
s = w.tk.call(self.command, *w._options(self.options))
tracing that back, 'tk' is part of a root module _Tkinter, which is imported in Tkinter.py >3<
meaning what I need access to is compiled into the interpreter's backend >3<
so I can't make Tkinter's file dialog return the filter... ugh
I'll see if I can find an alternate tomorrow...
(something small that can do what askopenfilename can do AND return the filter)
this sucks and blows >3<
EDIT4:
for anyone who's interested, I've posted my revers-engineered code here:
https://www.daniweb.com/software-develop...ter-return
it should work just a tad better than the original functions as you're not forwarding through 3rd-party interfaces, and have a little more control.
EDIT5:
you know what... WTF am I doing...
I've been wanting to make UMC's import button work for so long now,
and having to redo the way scripts are handled give me the perfect opportunity to do so.
so UMC's UI will handle opening and saving files.