Recherche avancée

Médias (91)

Autres articles (42)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (7584)

  • libavdevice/gdigrab : fix HIDPI support for mouse positioning

    27 janvier 2019, par Dilshod Mukhtarov
    libavdevice/gdigrab : fix HIDPI support for mouse positioning
    

    Mouse position was not calculated properly in area or window mode

    Signed-off-by : Dilshod Mukhtarov <dilshodm@gmail.com>

    • [DH] libavdevice/gdigrab.c
  • How to select a rectangle of the screen to capture by dragging mouse on transparent background with wxPython ?

    4 août 2019, par makrottk

    I’m working on building an application to capture screen with ffmpeg and would like to determine the portion of the screen to capture by dragging the mouse, drawing a rectangle and passing the arguments to the ffmpeg call.

    I’m using wxPython to build a simple GUI for the application. I’ve gotten to the point where I can draw the rectangle and get the coordinates that I want : offset and size of the selected area.

    import wx

    global selectionOffset, selectionSize

    selectionOffset = ""
    selectionSize = ""

    class SelectableFrame(wx.Frame):

       c1 = None
       c2 = None

       def __init__(self, parent=None, id=wx.ID_ANY, title=""):
           wx.Frame.__init__(self, parent, id, title, size=wx.DisplaySize(), style=wx.TRANSPARENT_WINDOW)

           self.Bind(wx.EVT_MOTION, self.OnMouseMove)
           self.Bind(wx.EVT_LEFT_DOWN, self.OnMouseDown)
           self.Bind(wx.EVT_LEFT_UP, self.OnMouseUp)
           self.Bind(wx.EVT_PAINT, self.OnPaint)

           self.SetCursor(wx.Cursor(wx.CURSOR_CROSS))

       def OnMouseMove(self, event):
           if event.Dragging() and event.LeftIsDown():
               self.c2 = event.GetPosition()
               self.Refresh()

       def OnMouseDown(self, event):
           self.c1 = event.GetPosition()

       def OnMouseUp(self, event):
           self.SetCursor(wx.Cursor(wx.CURSOR_ARROW))
           self.Destroy()

       def OnPaint(self, event):
           global selectionOffset, selectionSize
           if self.c1 is None or self.c2 is None: return

           dc = wx.PaintDC(self)
           dc.SetPen(wx.Pen('red', 1))
           dc.SetBrush(wx.Brush(wx.Colour(0, 0, 0), wx.TRANSPARENT))

           dc.DrawRectangle(self.c1.x, self.c1.y, self.c2.x - self.c1.x, self.c2.y - self.c1.y)
           selectionOffset = str(self.c1.x) + "x" + str(self.c1.y)
           selectionSize = str(abs(self.c2.x - self.c1.x)) + "x" + str(abs(self.c2.y - self.c1.y))
       def PrintPosition(self, pos):
           return str(pos.x) + "x" + str(pos.y)


    class MyApp(wx.App):

       def OnInit(self):
           frame = SelectableFrame()
           frame.Show(True)
           self.SetTopWindow(frame)

           return True


    app = MyApp(redirect=False)
    app.MainLoop()
    print("offset: " + selectionOffset + ". Screen selection size: " + selectionSize)

    The problem is I can’t get the "background" to be transparent so I can see which portion of the screen I’m really grabbing. How can I do that with wxPython ? If there’s an easier way with another GUI tool or python module I’m open to suggestions. Thanks !

  • Revision 44848 : lorsqu’il n’y avait pas de logo, le logo par défaut était choisi, mais ...

    20 février 2011, par prigent.yohann@… — Log

    lorsqu’il n’y avait pas de logo, le logo par défaut était choisi, mais sans balise alt... on en mets donc une basique