Jump to content


Barnie64

Member Since 5 Mar 2017
Offline Last Active 27 Mar 2019 07:33
-----

Posts I've Made

In Topic: GraphMultiEPG channel selection

12 May 2018 - 18:32

Actually that what why I thought a new setting was needed

Here is the code that functions for me. As I am not a Python programmer it might be a litte bit circuitous.

	def zapClose(self):
		self.showhideWindow(True)
		if self.zapFunc and self.key_red_choice == self.ZAP:
			ref = self["list"].getCurrent()[1]
			if ref:
				from Components.ServiceEventTracker import InfoBarCount
				preview = InfoBarCount > 1
				self.zapFunc(ref.ref, preview)
				if not preview:
					config.misc.graph_mepg.save()
					self.close(True)

	def eventSelected(self):
		if config.misc.graph_mepg.OKButton.value == "info":
			self.infoKeyPressed()
		elif config.misc.graph_mepg.OKButton.value == "zap+exit":
			self.zapClose()
		else:
			self.zapTo()


In Topic: GraphMultiEPG channel selection

12 May 2018 - 17:31

 

This looks very good to me.

I have tested the latest version of GMEPG from the git repository and it functions without any problems.

Thank you and the others for the quick help. You all do a great job!

 

Now I noticed something on the change. As I can see the "zapTo" function is also called when pressing the red button. So the configuration of the ok button influences the behaviour of the red button.

For testing purposes I have accordingly extended the "eventSelected" funktion and copied the "zapTo" to a "zapClose" funktion, which is called when Ok button is configured to zap+close.

The advantege is that the zapTo funktion is not changed and the behaviour of the red button keeps the same.


In Topic: GraphMultiEPG channel selection

12 May 2018 - 16:47

This looks very good to me.

I have tested the latest version of GMEPG from the git repository and it functions without any problems.

Thank you and the others for the quick help. You all do a great job!


In Topic: GraphMultiEPG channel selection

10 May 2018 - 14:37

Yes I think avoiding too much configs is the right way, but I am not shure if an extra config setting is necessary.

 

1. There is already an entree for the funktion of the Ok button (show detailed event info / zap to selected channel).

An additional selection (zap to channel + exit) here would be sufficient.

 

2. Another way to implement this without any config changes would be to make the behaviour dependent on the actual view mode.

If the funktion "zap to selected channel" is selekted in "Normal mode" the behavior can stay as it is (preview). In "List mode" it wolud be better to exit directly with zap, as a preview here makes no sense.

 

What do you and the others think about this solution?


In Topic: GraphMultiEPG channel selection

10 May 2018 - 11:12

If someone is working anyway on the GMEPG, I have a feature request if it can be done easily.

As I always use GMEPG for zapping in list mode, it would be nice if the Ok button could be programmed to Zap+Exit.

At the moment I have to press Ok twice. But this is only a comfort problem.