XBOX InBox (V.0.1) - FEEDBACK IF YOU WILL!
#16
is this pop3 only? if so is it possible to leave emails on the server? if you cant atm could you implement imap which i think allows you to leave emails on the server?
Reply
#17
bad news, i'm still not getting the settings window.
Reply
#18
it leaves email on server (thought i read it somewhere).. but imap is a possibility.. there is a builtin lib for it in python imaplib.py i think..
Reply
#19
blittan Wrote:it leaves email on server (thought i read it somewhere).. but imap is a possibility.. there is a builtin lib for it in python imaplib.py i think..

Doesn't change the emails/delete them AT ALL off the server :-D

Nuka - this is not good, does it create a settings.xml file on first startup?
Reply
#20
yes

Quote:
<settings>
<masterpassenable>no</masterpassenable>
<masterpass>-</masterpass>
<server1>-</server1>
<user1>-</user1>
<pass1>-</pass1>
<ssl1>-</ssl1>
<server2>-</server2>
<user2>-</user2>
<pass2>-</pass2>
<ssl2>-</ssl2>
</settings>
Reply
#21
Hi,

720p is what I run in. Your missing the settings BG for that.
self.seoverlay = xbmcgui.ControlImage(0,0,1280,720, 'background.png')

Really you should code for one resolution and use setCoordinateResolution(WHATEVER_YOU_USED)

just use only the PAL controls block and make a call to setResolution() in __init__().

Code:
def setResolution( self ):
        try:
            offset = 0
            resolutions = {'1080i' : 0, '720p' : 1, '480p' : 2, '480p16x9' : 3, 'ntsc' : 4, 'ntsc16x9' : 5, 'pal' : 6, 'pal16x9' : 7, 'pal60' : 8, 'pal6016x9' : 9}
            currentResolution = self.getResolution()
            resolution = resolutions[ 'pal' ]
            # if current and skinned resolutions differ and skinned resolution is not
            # 1080i or 720p (they have no 4:3), calculate widescreen offset
            if (( not ( currentResolution == resolution )) and resolution > 1 ):
                # check if current resolution is 16x9
                if ( currentResolution == 0 or currentResolution % 2 ): iCur16x9 = 1
                else: iCur16x9 = 0
                # check if skinned resolution is 16x9
                if ( resolution % 2 ): i16x9 = 1
                else: i16x9 = 0
                # calculate widescreen offset
                offset = iCur16x9 - i16x9
            self.setCoordinateResolution( resolution + offset )
        except: print 'ERROR: setting resolution'
Reply
#22
sorry, this is still based on the old xbmcmail script.
Reply
#23
i use this in the main init:
setCoordinateResolution(6) so it is pal
then i call self.setResolution

but is the setCoordinateResolution(6) needed as in your code snippit above you use:
resolution = resolutions[ 'pal' ]
should i change this to resolution = resolutions[self.getCoordinateResolution]or something?
Reply
#24
Ok, i did that and it works great, its up on svn now :-D

Give it a go and let me know.

Cheers
Reply
#25
the setResolution() function takes in to account widescreen tv's. if you skin for pal 4x3, but someone runs in pal16x9 it can be off a little. so don't call setCoordinateResolution() method in __init__(), just call the setResolution() function.
Reply
#26
Something else. I like the name Xbox Inbox. But what about:

XinBox

Nod

Sollie.
Image
Reply
#27
This line is wrong.
resolution = resolutions[self.getCoordinateResolution]

You need to set it at the resolution you skinned at.
so resolution = 6
or for convienince i included the values for all resolutions as a dictionary
so resolution = resolutions[ 'pal' ]
Reply
#28
Nuka1195 Wrote:This line is wrong.
resolution = resolutions[self.getCoordinateResolution]

You need to set it at the resolution you skinned at.
so resolution = 6
or for convienince i included the values for all resolutions as a dictionary
so resolution = resolutions[ 'pal' ]

Well before i call this function, i go self.getCoordinateResolution(6), and then call the function, so when it runs the line:
resolution = resolutions[self.getCoordinateResolution]
it gets resolution = resolutions[6] = pal

yeS?
Reply
#29
Oh by the way, check out the latest SVN, email popups all working great :-D

Sollie, me like! Rolls off the tounge abit better, *changing now*
Reply
#30
Ok, changed the resolution thing and tried different reso's in xbmc_pc and they all work great :-D, also, new name XinBox. Also i'v got rid of two images that weren’t even used panel & panel-email...

If someone felt so inclined to wip up a cool logo for "XinBox" , that would be great - im no Photoshop wiz, you will get credit.
Reply

Logout Mark Read Team Forum Stats Members Help
XBOX InBox (V.0.1) - FEEDBACK IF YOU WILL!0