Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

Just a little problem


.Relaia

Question

Hey,

I´ve got two little problems.. the first is my english isn´t really good so i cant explain my problem with the code not how i like to do it.... but hey lets try.

i´ve wirtten this :

for asdf in range(0,5):
			for i in range(0,5):
				vas = 5-i
				self.boni_new[asdf] = {}
				self.boni_new[asdf][vas] = {}
				self.boni_new[asdf][vas][0] = ui.TextLine()
				self.boni_new[asdf][vas][0].SetParent(self)
				self.boni_new[asdf][vas][0].SetText("Bonus "+str(5-asdf))
				self.boni_new[asdf][vas][0].SetPosition(15,10+25*(vas-1))
				self.boni_new[asdf][vas][0].Hide()
				self.boni_new[asdf][vas][1] = DropDown(self,"- Keiner -")
				self.boni_new[asdf][vas][1].SetPosition(70,10+25*(vas-1))
				for x in AFFECT_DICT:
					if x in BONI_AVAIL:
						self.boni_new[asdf][vas][1].AppendItem(str(AFFECT_DICT[x](0)),x)
				self.boni_new[asdf][vas][1].SetSize(330,20)
				self.boni_new[asdf][vas][1].Hide()
				self.boni_new[asdf][vas][2] = ui.Bar("UI")
				self.boni_new[asdf][vas][2].SetParent(self)
				self.boni_new[asdf][vas][2].SetPosition(410,10+25*(vas-1))
				self.boni_new[asdf][vas][2].SetColor(0xC0000000)
				self.boni_new[asdf][vas][2].SetSize(80,20)
				self.boni_new[asdf][vas][2].Hide()
				self.boni_new[asdf][vas][3] = Edit2("0",14)
				self.boni_new[asdf][vas][3].SetParent(self.boni_new[asdf][vas][2])
				self.boni_new[asdf][vas][3].SetNumberMode()
				self.boni_new[asdf][vas][3].SetSize(80,20)
				self.boni_new[asdf][vas][3].SetPosition(4,3)
				self.boni_new[asdf][vas][3].Hide()

and i want to get :
 

{0: {1: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {1: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {1: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {1: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {5: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x052FC5F0>, 2: <ui.Bar object at 0x05301270>, 3: <switchbot.Edit2 object at 0x05301290>}}}
{0: {2: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {2: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {2: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {2: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {4: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x05301290>, 2: <ui.Bar object at 0x05301ED0>, 3: <switchbot.Edit2 object at 0x05301EF0>}}}
{0: {3: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {3: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {3: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {3: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {3: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x05301EF0>, 2: <ui.Bar object at 0x05309B50>, 3: <switchbot.Edit2 object at 0x05309B70>}}}
{0: {4: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {4: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {4: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {4: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {2: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x05309B70>, 2: <ui.Bar object at 0x0530F7D0>, 3: <switchbot.Edit2 object at 0x0530F7F0>}}}
{0: {5: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {5: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {5: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {5: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {1: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x0530F7F0>, 2: <ui.Bar object at 0x0547D450>, 3: <switchbot.Edit2 object at 0x0547D470>}}}

 but i get:

{0: {1: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {1: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {1: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {1: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {5: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x052FC5F0>, 2: <ui.Bar object at 0x05301270>, 3: <switchbot.Edit2 object at 0x05301290>}}}
{0: {1: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {1: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {1: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {1: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {4: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x05301290>, 2: <ui.Bar object at 0x05301ED0>, 3: <switchbot.Edit2 object at 0x05301EF0>}}
{0: {1: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {1: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {1: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {1: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {3: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x05301EF0>, 2: <ui.Bar object at 0x05309B50>, 3: <switchbot.Edit2 object at 0x05309B70>}}}
{0: {1: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {1: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {1: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {1: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {2: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x05309B70>, 2: <ui.Bar object at 0x0530F7D0>, 3: <switchbot.Edit2 object at 0x0530F7F0>}}}
{0: {1: {0: <ui.TextLine object at 0x08EEC930>, 1: <switchbot.DropDown object at 0x08F42B70>, 2: <ui.Bar object at 0x08F467D0>, 3: <switchbot.Edit2 object at 0x08F467F0>}}, 1: {1: {0: <ui.TextLine object at 0x08F46870>, 1: <switchbot.DropDown object at 0x08F62A90>, 2: <ui.Bar object at 0x08F686F0>, 3: <switchbot.Edit2 object at 0x08F68710>}}, 2: {1: {0: <ui.TextLine object at 0x08F68790>, 1: <switchbot.DropDown object at 0x052DD9B0>, 2: <ui.Bar object at 0x052E4610>, 3: <switchbot.Edit2 object at 0x052E4630>}}, 3: {1: {0: <ui.TextLine object at 0x052EFFD0>, 1: <switchbot.DropDown object at 0x052FF8D0>, 2: <ui.Bar object at 0x052FC530>, 3: <switchbot.Edit2 object at 0x052FC550>}}, 4: {1: {0: <ui.TextLine object at 0x052FC5D0>, 1: <switchbot.DropDown object at 0x0530F7F0>, 2: <ui.Bar object at 0x0547D450>, 3: <switchbot.Edit2 object at 0x0547D470>}}}

 

because im ill at the moment i cant concentrate me very well.... can someone please tell me where the issue is?

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    2. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    3. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    4. 0

      Some mobs dont drop items

    5. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    6. 691

      [Group] Daily Music - Share your favorite!

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.