Ok Problem solved<br><br>self.myslide.Maximum = 380<br><br>set that in the slider properties<br><br>then<br><br>self.myslide.Value = (self.video.Position.TotalSeconds / self.video.NaturalDuration.TimeSpan.TotalSeconds) * self.myslide.Maximum<br>
<br>YAY :-)<br><br><br><br><br><br><div class="gmail_quote">On Tue, Jan 12, 2010 at 4:16 PM, Andrew Evans <span dir="ltr"><<a href="mailto:andrew.canit@gmail.com">andrew.canit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This hack seems to fix my problem only its backwards :-P<br><br>self.video.NaturalDuration.TimeSpan.TotalSeconds - self.video.Position.TotalSeconds<br><br>will keep playing with it <br><div><div></div><div class="h5"><br>
<div class="gmail_quote">On Tue, Jan 12, 2010 at 3:37 PM, Andrew Evans <span dir="ltr"><<a href="mailto:andrew.canit@gmail.com" target="_blank">andrew.canit@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ok that has been done, but the values are incrementing correctly. So I am not exactly sure why its doing this<br>
<br>I checked all values in that function. They increment as floating point numbers (time in milliseconds), which is correct. <br>
<br>Any other suggestions ;)<div><div></div><div><br><br><br><div class="gmail_quote">On Tue, Jan 12, 2010 at 1:52 PM, Jimmy Schementi <span dir="ltr"><<a href="mailto:Jimmy.Schementi@microsoft.com" target="_blank">Jimmy.Schementi@microsoft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks =)<br>
<br>
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:<br>
<br>
import sys<br>
from Microsoft.Scripting.Silverlight import Repl<br>
repl = Repl.Show()<br>
sys.stdout = repl.output_buffer<br>
<br>
... and then "print "Hello, World"" will show up in the "IronPython Console" tab.<br>
<font color="#888888"><br>
~Jimmy<br>
</font><div><div></div><div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>