trample Posted February 22, 2018 at 10:38 PM Share Posted February 22, 2018 at 10:38 PM introLogin.py(line:513) __LoadScript ui.py(line:3306) LoadScriptFile ui.py(line:3425) LoadChildren ui.py(line:2340) __init__ LoginWindow.__LoadScript.LoadObject - <type 'exceptions.AttributeError'>:'Bar' object has no attribute 'LoadImage' 0222 19:32:00956 :: ============================================================================================================ 0222 19:32:00956 :: Abort!!!! Citar class ThinBoard(Window): CORNER_WIDTH = 21 CORNER_HEIGHT = 21 LINE_WIDTH = 21 LINE_HEIGHT = 21 BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.51) UL = 0 UR = 1 UT = 2 UB = 3 ULT = 0 ULB = 1 URT = 2 URB = 3 LT = 0 LB = 1 RT = 2 RB = 3 L = 0 R = 1 T = 2 B = 3 def __init__(self, layer = "UI"): Window.__init__(self, layer) ShadowbarFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/shadow_bar_"+dir+".tga" for dir in ["left","right","top","bottom"] ] ShadowcornerFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/shadow_corner_"+dir+".tga" for dir in ["lefttop","leftbottom","righttop","rightbottom"] ] CornerFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/corner_"+dir+".tga" for dir in ["lefttop","leftbottom","righttop","rightbottom"] ] LineFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/bar_"+dir+".tga" for dir in ["left","right","top","bottom"] ] self.Shadowbars = [] for fileName in ShadowbarFileNames: Shadowbar = ExpandedImageBox() Shadowbar.AddFlag("attach") Shadowbar.AddFlag("not_pick") Shadowbar.LoadImage(fileName) Shadowbar.SetParent(self) Shadowbar.SetPosition(0, 0) Shadowbar.Show() self.Shadowbars.append(Shadowbar) self.Shadowcorners = [] for fileName in ShadowcornerFileNames: Shadowcorner = ExpandedImageBox() Shadowcorner.AddFlag("attach") Shadowcorner.AddFlag("not_pick") Shadowcorner.LoadImage(fileName) Shadowcorner.SetParent(self) Shadowcorner.SetPosition(0, 0) Shadowcorner.Show() self.Shadowcorners.append(Shadowcorner) self.Corners = [] for fileName in CornerFileNames: Corner = ExpandedImageBox() Corner.AddFlag("attach") Corner.AddFlag("not_pick") Corner.LoadImage(fileName) Corner.SetParent(self) Corner.SetPosition(0, 0) Corner.Show() self.Corners.append(Corner) self.Lines = [] for fileName in LineFileNames: Line = ExpandedImageBox() Line.AddFlag("attach") Line.AddFlag("not_pick") Line.LoadImage(fileName) Line.SetParent(self) Line.SetPosition(0, 0) Line.Show() self.Lines.append(Line) Base = ExpandedImageBox() Base = Bar() Base.SetParent(self) Base.AddFlag("attach") Base.AddFlag("not_pick") Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT) Base.LoadImage("kanort_work/images/controls/common/thinboard_transparent/fill.tga") Base.SetColor(self.BOARD_COLOR) Base.Show() self.Base = Base self.Shadowbars[self.UL].SetPosition(-11, self.CORNER_HEIGHT) self.Shadowbars[self.UT].SetPosition(self.CORNER_WIDTH, -11) self.Lines[self.L].SetPosition(0, self.CORNER_HEIGHT) self.Lines[self.T].SetPosition(self.CORNER_WIDTH, 0) def __del__(self): Window.__del__(self) Link to comment Share on other sites More sharing options...
WLN Posted February 23, 2018 at 12:31 PM Share Posted February 23, 2018 at 12:31 PM LoginWindow AttributeError'>:'Bar' object has no attribute 'LoadImage' ele não encontra o atributo Bar na opção LoadImage Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted February 24, 2018 at 01:45 AM Share Posted February 24, 2018 at 01:45 AM Erro parece-me ser aqui: Base = ExpandedImageBox() Base = Bar() Deixa apenas: Base = ExpandedImageBox() Link to comment Share on other sites More sharing options...
trample Posted February 25, 2018 at 01:14 AM Author Share Posted February 25, 2018 at 01:14 AM Mesmo corrigindo o problema eu nao encontro a opçao para almentar a imagem tipo a na imagem de fundo aparece ela pequena e o restante fica transparente sabe aonde fica para eu arrumar deixar o marrom maior e prencher a transparencia? Link to comment Share on other sites More sharing options...
Marco Posted February 25, 2018 at 01:32 AM Share Posted February 25, 2018 at 01:32 AM (edited) 38 minutos atrás, trample disse: Mesmo corrigindo o problema eu nao encontro a opçao para almentar a imagem tipo a na imagem de fundo aparece ela pequena e o restante fica transparente sabe aonde fica para eu arrumar deixar o marrom maior e prencher a transparencia? Tens de fazer a imagem então ..http://prntscr.com/ijd0hl Edited February 25, 2018 at 01:53 AM by мαяcσ Link to comment Share on other sites More sharing options...
trample Posted February 25, 2018 at 01:35 AM Author Share Posted February 25, 2018 at 01:35 AM e a resoluçao que entre o bord com a imagem nao adianta eu apenas almentar a imagems penso eu se nao os bord vai continuar transparente deve ser alguma aplicaçao na base olha Citar class ThinBoard(Window): CORNER_WIDTH = 21 CORNER_HEIGHT = 21 LINE_WIDTH = 21 LINE_HEIGHT = 21 BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.51) UL = 0 UR = 1 UT = 2 UB = 3 ULT = 0 ULB = 1 URT = 2 URB = 3 LT = 0 LB = 1 RT = 2 RB = 3 L = 0 R = 1 T = 2 B = 3 def __init__(self, layer = "UI"): Window.__init__(self, layer) ShadowbarFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/shadow_bar_"+dir+".tga" for dir in ["left","right","top","bottom"] ] ShadowcornerFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/shadow_corner_"+dir+".tga" for dir in ["lefttop","leftbottom","righttop","rightbottom"] ] CornerFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/corner_"+dir+".tga" for dir in ["lefttop","leftbottom","righttop","rightbottom"] ] LineFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/bar_"+dir+".tga" for dir in ["left","right","top","bottom"] ] self.Shadowbars = [] for fileName in ShadowbarFileNames: Shadowbar = ExpandedImageBox() Shadowbar.AddFlag("attach") Shadowbar.AddFlag("not_pick") Shadowbar.LoadImage(fileName) Shadowbar.SetParent(self) Shadowbar.SetPosition(0, 0) Shadowbar.Show() self.Shadowbars.append(Shadowbar) self.Shadowcorners = [] for fileName in ShadowcornerFileNames: Shadowcorner = ExpandedImageBox() Shadowcorner.AddFlag("attach") Shadowcorner.AddFlag("not_pick") Shadowcorner.LoadImage(fileName) Shadowcorner.SetParent(self) Shadowcorner.SetPosition(0, 0) Shadowcorner.Show() self.Shadowcorners.append(Shadowcorner) self.Corners = [] for fileName in CornerFileNames: Corner = ExpandedImageBox() Corner.AddFlag("attach") Corner.AddFlag("not_pick") Corner.LoadImage(fileName) Corner.SetParent(self) Corner.SetPosition(0, 0) Corner.Show() self.Corners.append(Corner) self.Lines = [] for fileName in LineFileNames: Line = ExpandedImageBox() Line.AddFlag("attach") Line.AddFlag("not_pick") Line.LoadImage(fileName) Line.SetParent(self) Line.SetPosition(0, 0) Line.Show() self.Lines.append(Line) Base = ExpandedImageBox() Base.SetParent(self) Base.AddFlag("attach") Base.AddFlag("not_pick") Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT) Base.LoadImage("kanort_work/images/controls/common/thinboard_transparent/fill.tga") Base.Show() self.Base = Base self.Shadowbars[self.UL].SetPosition(-41, self.CORNER_HEIGHT) self.Shadowbars[self.UT].SetPosition(self.CORNER_WIDTH, -41) self.Lines[self.L].SetPosition(0, self.CORNER_HEIGHT) self.Lines[self.T].SetPosition(self.CORNER_WIDTH, 0) def __del__(self): Window.__del__(self) if app.ENABLE_SEND_TARGET_INFO: def ShowCorner(self, corner): self.Corners[corner].Show() self.SetSize(self.GetWidth(), self.GetHeight()) def HideCorners(self, corner): self.Corners[corner].Hide() self.SetSize(self.GetWidth(), self.GetHeight()) def ShowLine(self, line): self.Lines[line].Show() self.SetSize(self.GetWidth(), self.GetHeight()) def HideLine(self, line): self.Lines[line].Hide() self.SetSize(self.GetWidth(), self.GetHeight()) def SetSize(self, width, height): width = max(self.CORNER_WIDTH*2, width) height = max(self.CORNER_HEIGHT*2, height) Window.SetSize(self, width, height) self.Shadowcorners[self.ULT].SetPosition(-11, -11) self.Shadowcorners[self.ULB].SetPosition(-11, height - self.CORNER_HEIGHT) self.Shadowcorners[self.URT].SetPosition(width - self.CORNER_WIDTH, -11) self.Shadowcorners[self.URB].SetPosition(width - self.CORNER_WIDTH, height - self.CORNER_HEIGHT) self.Shadowbars[self.UR].SetPosition(width - self.CORNER_WIDTH, self.CORNER_HEIGHT) self.Shadowbars[self.UB].SetPosition(self.CORNER_HEIGHT, height - self.CORNER_HEIGHT) self.Corners[self.LB].SetPosition(0, height - self.CORNER_HEIGHT) self.Corners[self.RT].SetPosition(width - self.CORNER_WIDTH, 0) self.Corners[self.RB].SetPosition(width - self.CORNER_WIDTH, height - self.CORNER_HEIGHT) self.Lines[self.R].SetPosition(width - self.CORNER_WIDTH, self.CORNER_HEIGHT) self.Lines[self.B].SetPosition(self.CORNER_HEIGHT, height - self.CORNER_HEIGHT) verticalShowingPercentage = float((height - self.CORNER_HEIGHT*2) - self.LINE_HEIGHT) / self.LINE_HEIGHT horizontalShowingPercentage = float((width - self.CORNER_WIDTH*2) - self.LINE_WIDTH) / self.LINE_WIDTH self.Lines[self.L].SetRenderingRect(0, 0, 0, verticalShowingPercentage) self.Lines[self.R].SetRenderingRect(0, 0, 0, verticalShowingPercentage) self.Lines[self.T].SetRenderingRect(0, 0, horizontalShowingPercentage, 0) self.Lines[self.B].SetRenderingRect(0, 0, horizontalShowingPercentage, 0) self.Base.SetRenderingRect(0, 0, width - self.CORNER_WIDTH*2 - 1, height - self.CORNER_HEIGHT*2 - 1) self.Shadowbars[self.UT].SetRenderingRect(0, 0, width - self.CORNER_WIDTH*2 - 1, 0) self.Shadowbars[self.UB].SetRenderingRect(0, 0, width - self.CORNER_WIDTH*2 - 1, 0) self.Shadowbars[self.UR].SetRenderingRect(0, 0, 0, height - self.CORNER_HEIGHT*2 - 1) self.Shadowbars[self.UL].SetRenderingRect(0, 0, 0, height - self.CORNER_HEIGHT*2 - 1) Link to comment Share on other sites More sharing options...
Marco Posted February 25, 2018 at 01:56 AM Share Posted February 25, 2018 at 01:56 AM 21 minutos atrás, trample disse: e a resoluçao que entre o bord com a imagem nao adianta eu apenas almentar a imagems penso eu se nao os bord vai continuar transparente deve ser alguma aplicaçao na base olha eu editei * se estás a usar estas imagens http://prntscr.com/ijd0hl edita ai Link to comment Share on other sites More sharing options...
trample Posted February 25, 2018 at 02:01 AM Author Share Posted February 25, 2018 at 02:01 AM na realidade editei Conteudo da Root , mais vou ver se funfa editar a imagem pq nao mostra a reslouçao da imagem achei muito estranho Link to comment Share on other sites More sharing options...
Marco Posted February 25, 2018 at 02:14 AM Share Posted February 25, 2018 at 02:14 AM 11 minutos atrás, trample disse: na realidade editei Conteudo da Root , mais vou ver se funfa editar a imagem pq nao mostra a reslouçao da imagem achei muito estranho Edita a imagem que resolve, contudo tem atenção que in-game irá mudar também Link to comment Share on other sites More sharing options...
trample Posted February 25, 2018 at 02:28 AM Author Share Posted February 25, 2018 at 02:28 AM nao adiantou mudar o tamanho ficou a mesma coisa Link to comment Share on other sites More sharing options...
Marco Posted February 25, 2018 at 02:53 AM Share Posted February 25, 2018 at 02:53 AM edita a imagem, mas a cor não o tamanho -.- Link to comment Share on other sites More sharing options...
trample Posted February 25, 2018 at 03:07 AM Author Share Posted February 25, 2018 at 03:07 AM como assim a cor ? nao entendi Link to comment Share on other sites More sharing options...
Marco Posted February 25, 2018 at 11:39 AM Share Posted February 25, 2018 at 11:39 AM 8 horas atrás, trample disse: como assim a cor ? nao entendi sim Link to comment Share on other sites More sharing options...
trample Posted February 25, 2018 at 01:38 PM Author Share Posted February 25, 2018 at 01:38 PM self.Base.SetRenderingRect(-40, 0, width - self.CORNER_WIDTH*2 - -73, height - self.CORNER_HEIGHT*4 - -23) whiter.1.class ja estou resolvendo encontrei aonde edita a imagem valeu aii , Marco Humildae leva ao crecimento de novos sucessos Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now