Jump to content


Photo

Button() and Label(), PLi opinion.


  • Please log in to reply
465 replies to this topic

Re: Button() and Label(), PLi opinion. #221 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 24 January 2018 - 19:01

Main problem for me is that we have to submit code to develop branch but there is not a develop image available. So when the develop file differs from the RC file it is impossible to properly test it.


Edited by Huevos, 24 January 2018 - 19:02.


Re: Button() and Label(), PLi opinion. #222 littlesat

  • PLi® Core member
  • 57,120 posts

+698
Excellent

Posted 24 January 2018 - 19:54

I think submitters (=contributes) must have develop image access....

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Button() and Label(), PLi opinion. #223 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 24 January 2018 - 19:59

If you are not building yourself, that is the most logical alternative.

 

For larger developments, I would like to use separate development branches as well, so it is possible to have larger periodes of instability without impact on the main development train. Obviously, we need buildserver support for that, and the option for contributors to trigger a build for a specific branch and box, something we've been talking about, but I haven't gotten around to (only two hands and limited time).  


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Button() and Label(), PLi opinion. #224 littlesat

  • PLi® Core member
  • 57,120 posts

+698
Excellent

Posted 24 January 2018 - 20:09

Self building is not relevant here. You have to be able to check the outcome in the orriginal...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Button() and Label(), PLi opinion. #225 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 24 January 2018 - 20:45

Self building is not relevant here. You have to be able to check the outcome in the orriginal...

 

Huh?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Button() and Label(), PLi opinion. #226 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 24 January 2018 - 21:48

Self building is not relevant here. You have to be able to check the outcome in the orriginal...

You are going off topic now. I just need an image so I can test python changes. If I was working on C++ code I would set up my own build for PLi. But just for testing Python changes that is over the top.



Re: Button() and Label(), PLi opinion. #227 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 25 January 2018 - 04:28

Hi,

One of the things I'm thinking about is to start some sort of "developer programme" to which you can subscribe, which gives you access to a developers-only forum for technical discussions, development images and the issue trackers, which we can limit to people that actually know what they are doing. But no decision has been taken about this yet.

As an active Beyonwiz developer (Australian Enigma2 devices) and an OpenViX contributor I would live to be able to work with OpenPLi to integrate some of my enhancements.  (I developed the international time and date display system for OpenViX and Beyonwiz.  I am now working on enhancements and cleanups to Setup.py and soon Menu.py.)

I don't have a build environment I just use developer images and feed to install and text my code changes.

+1 for a development access program.

Regards,
Ian.

 



Re: Button() and Label(), PLi opinion. #228 littlesat

  • PLi® Core member
  • 57,120 posts

+698
Excellent

Posted 25 January 2018 - 07:56

Huh?... I think I just reached the point here... think about someone who reports an issue or suggest improvements or offer a merge is able to (let) check his thoughts, suggestions and contribution in a genuine develops image... not everyone who wants to contribute does really like or is able to build and feed for his own and with this way you also sure your contribution works 100% in genuine Pli (as own builds could unexpectically deviate)
I also think it might promote more international devs contributing here....

Edited by littlesat, 25 January 2018 - 07:59.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Button() and Label(), PLi opinion. #229 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 25 January 2018 - 09:34

I understand that, but that wasn't my point.

 

If you home build an image from the develop branch, it is equal to a genuine image, apart from our artwork. We don't have any offline code in the image.

 

I didn't say (or meant) that we shouldn't make develop images available, on the contrary, the "test and dev programme" was my idea. ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Button() and Label(), PLi opinion. #230 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 25 January 2018 - 09:55

@WanWizard, if you build your own image the first screen that you reach says "this is not a genuine image".



Re: Button() and Label(), PLi opinion. #231 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 25 January 2018 - 10:05

Huh?... I think I just reached the point here... think about someone who reports an issue or suggest improvements or offer a merge is able to (let) check his thoughts, suggestions and contribution in a genuine develops image... not everyone who wants to contribute does really like or is able to build and feed for his own and with this way you also sure your contribution works 100% in genuine Pli (as own builds could unexpectically deviate)
I also think it might promote more international devs contributing here....

Yes, exactly. Previously all we needed to do was check our submissions in a standard PLi build. Now that is not possible because there maybe be differences.



Re: Button() and Label(), PLi opinion. #232 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 25 January 2018 - 10:18

Anyway: my looking for button-related issues in PLi has stopped. My previously reported issues where solely found by reading the code, but now a live-image is required (at least for me).



Re: Button() and Label(), PLi opinion. #233 WanWizard

  • PLi® Core member
  • 70,396 posts

+1,807
Excellent

Posted 26 January 2018 - 16:05

@WanWizard, if you build your own image the first screen that you reach says "this is not a genuine image".

 

Yes. Meaning: it is an image WE haven't build, and therefore WE don't support. Code wise the image is identical, like I said, apart from the artwork.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Button() and Label(), PLi opinion. #234 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 27 January 2018 - 09:54

Solo4K (with updates, feeds and plugins?). Or OS Mega.

vusolo4k is ready (develop branch): http://www.mediafire...usolo4k_usb.zip

No feed sorry ...


Open Vision sources: https://github.com/OpenVisionE2


Re: Button() and Label(), PLi opinion. #235 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 27 January 2018 - 15:14

@Littlesat,

 

Continued from Github...

 

Please look at this suggestion.

 

https://github.com/A...d8de779893b0144

https://github.com/H....py#L1057-L1062

https://github.com/H...in.py#L306-L309

 

For the common good I suggest we share this (tested) solution for the reasons mentioned on Github.

 

I have closed the pull request.



Re: Button() and Label(), PLi opinion. #236 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 27 January 2018 - 15:28

Or we can change this so the first parameter of objectTypes is the key to test.



Re: Button() and Label(), PLi opinion. #237 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 27 January 2018 - 15:40

Or we can change this so the first parameter of objectTypes is the key to test.

That would look something like this:

	def process_screen(widget, context):
		for w in widget.getchildren():
			conditional = w.attrib.get('conditional')
			if conditional and not [i for i in conditional.split(",") if i in screen.keys()]:
				continue
			objecttypes = w.attrib.get('objectTypes')
			if objecttypes and len(objecttypes.split(",")) > 1:
				key = objecttypes.split(",")[0]
				if key and key in screen and not [i for i in objecttypes.split(",")[1:] if i == screen[key].__class__.__name__]:
					continue
			p = processors.get(w.tag, process_none)
			try:
				p(w, context)
			except SkinError, e:
				print "[Skin] Skin error in screen '%s' widget '%s':" % (name, w.tag), e



Re: Button() and Label(), PLi opinion. #238 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 27 January 2018 - 15:44

That would mean the first argument of objectTypes is the object to check, and the subsequent arguments are the object types to test against.



Re: Button() and Label(), PLi opinion. #239 littlesat

  • PLi® Core member
  • 57,120 posts

+698
Excellent

Posted 27 January 2018 - 16:13

I recommend to make the code a bit more simple by just splitting it once...?

Edited by littlesat, 27 January 2018 - 16:14.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Button() and Label(), PLi opinion. #240 Huevos

  • PLi® Contributor
  • 4,644 posts

+161
Excellent

Posted 27 January 2018 - 18:25

I recommend to make the code a bit more simple by just splitting it once...?

I don't think it simplifies it. Look...

	def process_screen(widget, context):
		for w in widget.getchildren():
			conditional = w.attrib.get('conditional')
			if conditional and not [i for i in conditional.split(",") if i in screen.keys()]:
				continue
			objecttypes = w.attrib.get('objectTypes')
			objecttypes_split = objecttypes and len(objecttypes.split(",")) > 1 and objecttypes.split(",")
			if objecttypes_split:
				key = objecttypes_split(",")[0]
				if key and key in screen and not [i for i in objecttypes_split[1:] if i == screen[key].__class__.__name__]:
					continue
			p = processors.get(w.tag, process_none)
			try:
				p(w, context)
			except SkinError, e:
				print "[Skin] Skin error in screen '%s' widget '%s':" % (name, w.tag), e



16 user(s) are reading this topic

0 members, 16 guests, 0 anonymous users