Jump to content

Character removal


Recommended Posts

Hello,

 

I encounter a problem when deleting the character in the selection.

By clicking "delete," the customer closes and I get this error:


0113 00:15:14494 :: 
uicommon.py(line:263) __CreateDialog
ui.py(line:8065) GetChild

InputDialogWithDescription.LoadBoardDialog.BindObject - <type 'exceptions.KeyError'>:'special_bg' 

0113 00:15:14494 :: ============================================================================================================
0113 00:15:14494 :: Abort!!!!

 

Thanks in advance

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Hello and thank you for responding,

 

At line 263 i have this :


            self.special_bg = getObject("special_bg")

 


        pyScrLoader = ui.PythonScriptLoader()
        pyScrLoader.LoadScriptFile(self, "uiscript/inputdialogwithdescription.py")

        try:
            getObject = self.GetChild
            self.board = getObject("Board")
            self.special_bg = getObject("special_bg")

 

 

and in uiscript then inputdialogwithdescription.py, i have this :


import uiScriptLocale

window = {
    "name" : "InputDialog_WithDescription",

    "x" : 0,
    "y" : 0,

    "style" : ("movable", "float",),

    "width" : 170,
    "height" : 106,

    "children" :
    (
        {
            "name" : "Board",
            "type" : "board_with_titlebar",

            "x" : 0,
            "y" : 0,

            "width" : 170,
            "height" : 106,

            "title" : "",

            "children" :
            (

                ## Text
                {
                    "name" : "Description",
                    "type" : "text",
                    "text" : "",
                    "horizontal_align" : "center",
                    "text_horizontal_align" : "center",
                    "x" : 0,
                    "y" : 34,
                },

                ## Input Slot
                {
                    "name" : "InputSlot",
                    "type" : "slotbar",

                    "x" : 0,
                    "y" : 51,
                    "width" : 90,
                    "height" : 18,
                    "horizontal_align" : "center",

                    "children" :
                    (
                        {
                            "name" : "InputValue",
                            "type" : "editline",

                            "x" : 3,
                            "y" : 3,

                            "width" : 90,
                            "height" : 18,

                            "input_limit" : 12,
                        },
                    ),
                },

                ## Button
                {
                    "name" : "AcceptButton",
                    "type" : "button",

                    "x" : - 61 - 5 + 30,
                    "y" : 74,
                    "horizontal_align" : "center",

                    "text" : "|cffb6a68dOK",

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },
                {
                    "name" : "CancelButton",
                    "type" : "button",

                    "x" : 5 + 30,
                    "y" : 74,
                    "horizontal_align" : "center",

                    "text" : uiScriptLocale.CANCEL,

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },

            ),
        },
    ),
}

 

No "special_bg" in this file, i don't know what to do...

 

Thank you in advance

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.