Problems registering, no confirmation email - see http://wiki.scribus.net/canvas/Forums_Registration
def main():
""" Application/Dialog loop with Scribus sauce around """
try:
statusMessage('Running script...')
progressReset()
original_locale1=locale.getlocale(locale.LC_CTYPE)
original_locale2=locale.getlocale(locale.LC_TIME)
root = Tk()
app = TkCalendar(root)
root.mainloop()
locale.setlocale(locale.LC_CTYPE, original_locale1)
locale.setlocale(locale.LC_TIME, original_locale2)
finally:
if haveDoc() > 0:
redrawAll()
statusMessage('Done.')
progressReset()
def main():
""" Application/Dialog loop with Scribus sauce around """
try:
statusMessage('Running script...')
progressReset()
# original_locale1=locale.getlocale(locale.LC_CTYPE)
# original_locale2=locale.getlocale(locale.LC_TIME)
root = Tk()
app = TkCalendar(root)
root.mainloop()
# locale.setlocale(locale.LC_CTYPE, original_locale1)
# locale.setlocale(locale.LC_TIME, original_locale2)
finally:
if haveDoc() > 0:
redrawAll()
statusMessage('Done.')
progressReset()
messagebox.showinfo("INFO:",'locale.LC_CTYPE=' + str(original_locale1))
which in my case gave backlocale.LC_CTYPE=('English_Switzerland','1252')
before the script run and locale.LC_CTYPE ('de_DE','cp1252')
after the script ran.def main():
""" Application/Dialog loop with Scribus sauce around """
try:
statusMessage('Running script...')
progressReset()
original_locale1=locale.getlocale(locale.LC_CTYPE)
original_locale2=locale.getlocale(locale.LC_TIME)
messagebox.showinfo("INFO:",'locale.LC_CTYPE=' + str(original_locale1))
root = Tk()
app = TkCalendar(root)
root.mainloop()
messagebox.showinfo("INFO:",'locale.getlocale(locale.LC_CTYPE)' + str(locale.getlocale(locale.LC_CTYPE)))
locale.setlocale(locale.LC_CTYPE, original_locale1)
locale.setlocale(locale.LC_TIME, original_locale2)
finally:
if haveDoc() > 0:
redrawAll()
statusMessage('Done.')
progressReset()
# encoding: utf-8
#
# (c) MIT your name
#
# Boilerplate for Scribus scripts
#
# For details see the README file.
try:
import scribus
except ImportError as ex:
print('This script must be run from inside Scribus')
raise ex
def main():
# Replace the following line by your code
pass
if __name__ == "__main__":
main()