jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
615 stars 68 forks source link

Add custom text to the select entry #533

Closed cristianmarian95 closed 6 years ago

cristianmarian95 commented 6 years ago

Add args in addFileEntry were you can set your on custom text for the select buttons

if selectFile: command = self.MAKE_FUNC(self._getFileName, title) vFrame.theWidget.click_command = self.MAKE_FUNC(self._checkFileName, title) text = "File" default = "-- enter a filename --" else: command = self.MAKE_FUNC(self._getDirName, title) vFrame.theWidget.click_command = self.MAKE_FUNC(self._checkDirName, title) text = "Directory" default = "-- enter a directory --"

jarvisteach commented 6 years ago

There is already a request for this feature (#170) which has been moved to the entry backlog (#527).

I think the text, default & command should all be customisable.

Will close this, and update #527.