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
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
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
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
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
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
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.
> 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
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 ;-
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
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:
/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
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
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
14 matches
Mail list logo