pyqso/src/data_entry_panel.py

41 wiersze
1.3 KiB
Python

#!/usr/bin/env python
# File: data_entry_panel.py
# Copyright (C) 2013 Christian Jacobs.
# This file is part of PyQSO.
# PyQSO is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PyQSO is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyQSO. If not, see <http://www.gnu.org/licenses/>.
from gi.repository import Gtk, GObject
import logging
class DataEntryPanel(Gtk.VBox):
def __init__(self, parent, hbox):
logging.debug("New DataEntryPanel instance created!")
Gtk.VBox.__init__(self, spacing=6)
self.edit_call = Gtk.Entry()
temp_hbox = Gtk.HBox(spacing=6)
temp_hbox.pack_start(Gtk.Label("Call: "), False, False, 0)
temp_hbox.pack_start(self.edit_call, False, False, 0)
self.pack_start(temp_hbox, False, False, 0)
hbox.pack_start(self, False, False, 0)
return