Re: [IronPython] Silverlight code need help (Repost)

2010-01-14 Thread Andrew Evans
Ok Problem solved self.myslide.Maximum = 380 set that in the slider properties then self.myslide.Value = (self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds) * self.myslide.Maximum YAY :-) On Tue, Jan 12, 2010 at 4:16 PM, Andrew Evans wrote: > This hack s

Re: [IronPython] Silverlight code need help (Repost)

2010-01-12 Thread Andrew Evans
This hack seems to fix my problem only its backwards :-P self.video.NaturalDuration.TimeSpan.TotalSeconds - self.video.Position.TotalSeconds will keep playing with it On Tue, Jan 12, 2010 at 3:37 PM, Andrew Evans wrote: > Ok that has been done, but the values are incrementing correctly. So I am

Re: [IronPython] Silverlight code need help (Repost)

2010-01-12 Thread Andrew Evans
Ok that has been done, but the values are incrementing correctly. So I am not exactly sure why its doing this I checked all values in that function. They increment as floating point numbers (time in milliseconds), which is correct. Any other suggestions ;) On Tue, Jan 12, 2010 at 1:52 PM, Jimmy

Re: [IronPython] Silverlight code need help (Repost)

2010-01-12 Thread Jimmy Schementi
Thanks =) It's most likely an issue in the MyTimeToTick method. You should do some print-statement-debugging to make sure the properties you're using to compute the slider position are correct. To see the print statements, put this at the top of your file: import sys from Microsoft.Scripting.S

Re: [IronPython] Silverlight code need help (Repost)

2010-01-12 Thread Andrew Evans
ts.ironpython.com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *Andrew Evans > *Sent:* Tuesday, January 12, 2010 8:55 AM > *To:* Discussion of IronPython > *Subject:* Re: [IronPython] Silverlight code need help (Repost) > > > > There seems to be a Flaw

Re: [IronPython] Silverlight code need help (Repost)

2010-01-12 Thread Jimmy Schementi
ry 12, 2010 8:55 AM To: Discussion of IronPython Subject: Re: [IronPython] Silverlight code need help (Repost) There seems to be a Flaw in my code It seems the movie is finished before the slider reaches the end of its length. Any suggestions? Or is there something wrong with my br

Re: [IronPython] Silverlight code need help (Repost)

2010-01-12 Thread Andrew Evans
There seems to be a Flaw in my code It seems the movie is finished before the slider reaches the end of its length. Any suggestions? Or is there something wrong with my browser? ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.

Re: [IronPython] Silverlight code need help (Repost)

2010-01-11 Thread Jimmy Schementi
> You must be getting sick of me :-P j/k Na, I'm happy someone's asking this many questions about Silverlight. =) > Ok I have a simple video player setup ultimately I would like to connect it > to a Database. I am writing the database code but I am unsure how to $_GET > a value in IronPython. Al

Re: [IronPython] Silverlight code need help (Repost)

2010-01-11 Thread Andrew Evans
Hello again You must be getting sick of me :-P j/k Ok I have a simple video player setup ultimately I would like to connect it to a Database. I am writing the database code but I am unsure how to $_GET a value in IronPython. Although I will be honest and haven't done to much research as of yet ;-

Re: [IronPython] Silverlight code need help (Repost)

2010-01-11 Thread Jimmy Schementi
And to answer your initial question about images in buttons, here's how to do it: from System.Windows.Controls import Button, Image from System.Windows.Media.Imaging import BitmapImage btn = Button( Width = 25, Height = 20, Content = Image( Source = BitmapImage(Uri("images/s

Re: [IronPython] Silverlight code need help (Repost)

2010-01-11 Thread Andrew Evans
f3-5e7b5409e9dd&displaylang=en) > installed, or you’re using VS 2010 (which support Silverlight > out-of-the-box). > > > > ~js > > > > *From:* Jimmy Schementi > *Sent:* Monday, January 11, 2010 1:27 PM > > *To:* users@lists.ironpython.com > *Subject:* RE:

Re: [IronPython] Silverlight code need help (Repost)

2010-01-11 Thread Jimmy Schementi
/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&displaylang=en) installed, or you're using VS 2010 (which support Silverlight out-of-the-box). ~js From: Jimmy Schementi Sent: Monday, January 11, 2010 1:27 PM To: users@lists.ironpython.com Subject: RE: [IronPython] Silverlight code

Re: [IronPython] Silverlight code need help (Repost)

2010-01-11 Thread Jimmy Schementi
Monday, January 11, 2010 1:04 PM To: users@lists.ironpython.com Subject: [IronPython] Silverlight code need help (Repost) I am having problems with my code. I am not sure how to debug silverlight. I receive no error messages, but this is what happens. When this app runs it starts for a second then disa

[IronPython] Silverlight code need help (Repost)

2010-01-11 Thread Andrew Evans
I am having problems with my code. I am not sure how to debug silverlight. I receive no error messages, but this is what happens. When this app runs it starts for a second then disappears I am not sure where I am going wrong, any ideas? Perhaps in the threading? I am not a C# programmer but I am d