Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
3070c720
Commit
3070c720
authored
May 31, 2013
by
Dicson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QuickRepliesPlugin. pep8
parent
b2341159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
quick_replies/plugin.py
quick_replies/plugin.py
+3
-2
No files found.
quick_replies/plugin.py
View file @
3070c720
...
...
@@ -16,7 +16,7 @@ class QuickRepliesPlugin(GajimPlugin):
self
.
chat_control
=
None
self
.
gui_extension_points
=
{
'chat_control_base'
:
(
self
.
connect_with_chat_control
,
self
.
disconnect_from_chat_control
),}
self
.
disconnect_from_chat_control
),
}
self
.
config_default_values
=
{
'entry1'
:
(
'Hello!'
,
''
),
'entry2'
:
(
'How are you?'
,
''
),
...
...
@@ -45,6 +45,7 @@ class QuickRepliesPlugin(GajimPlugin):
control
.
disconnect_from_chat_control
()
self
.
controls
=
[]
class
Base
(
object
):
def
__init__
(
self
,
plugin
,
chat_control
):
...
...
@@ -108,6 +109,7 @@ class Base(object):
actions_hbox
=
self
.
chat_control
.
xml
.
get_object
(
'actions_hbox'
)
actions_hbox
.
remove
(
self
.
button
)
class
QuickRepliesPluginConfigDialog
(
GajimPluginConfigDialog
):
def
init
(
self
):
...
...
@@ -133,4 +135,3 @@ class QuickRepliesPluginConfigDialog(GajimPluginConfigDialog):
self
.
plugin
.
config
[
name
]
=
widget
.
get_text
()
for
control
in
self
.
plugin
.
controls
:
control
.
create_menu
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment