Exemplo n.º 1
0
        def show_license(progress, on_language):
            text_license = open("LICENSE/GNU_LICENSE_{}.rst".format(
                core.dict_language[on_language])).read()

            message = KDialog(underline_color="a6b4bcff",
                              base_font_size=self.window_text_size,
                              background_image=core.theme_decorator_window)
            message.show(title="GNU_LICENSE:", text=text_license, rst=True,
                         size_rst=(.9, .7))
            progress.body.dismiss()
Exemplo n.º 2
0
 def create_window(self, text, title=core.string_lang_title,
                   button_ok=None, button_no=None, button_cancel=None,
                   background=core.theme_decorator_window, param="info",
                   callback=p, dismiss=False, size_x=CONST_SCREEN,
                   font_size=window_text_size, password=False):
     window = KDialog(answer_callback=callback, base_font_size=font_size,
                      background_image=background, size_hint_x=size_x)
     window.show(title=title, image="Data/Images/loading.gif",
                 text=text, param=param, auto_dismiss=dismiss,
                 text_button_ok=button_ok, text_button_no=button_no,
                 text_button_cancel=button_cancel, password=password)
     return window