Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
Preference-Example.md
Go to the documentation of this file.
1 Adds a new tab and/or new preferences onto the Remmina preference dialog.
2 
3 ```python
4 import remmina
5 import gi
6 gi.require_version("Gtk", "3.0")
7 from gi.repository import Gtk, GLib
8 
9 class Pluginpref:
10  def __init__(self):
11  # A button to be shown in the preference dialog in Remmina
12  self.button = None
13  self.name = "Python pref Plugin"
14  # The label of the tab on the left side of the preference dialog.
15  self.pref_label = "Preference Label"
16  self.type = "pref"
17  self.description = "Press me!"
18  self.version = "1.0"
19  # Prepare the button to be shonw inside the preference tab
20  self.button = Gtk.Button(label="Click Here")
21  self.button.connect("clicked", self.on_button_clicked)
22 
23  def get_pref_body(self):
24  # Remmina renders the preferences and requests the body of the preference tab.
25  return self.button
26 
27  def on_button_clicked(self, btn):
28  print("Click! :)")
29 
30 
31 myprefPlugin = Pluginpref()
32 remmina.register_plugin(myprefPlugin)
33 ```